Exporting an Image from a GUI to the Command Line

1 view (last 30 days)
As the question states, I'm trying to allow the user to export an image from a GUI onto the command line. My GUI allows the user to perform operations on an image, but if they want to export the image to the command line and use a function that I don't have the capability for in my GUI, then how do I allow them to do that?
  2 Comments
Oleg Komarov
Oleg Komarov on 27 Aug 2012
I don't think you mean the command line but the base workspace.
Caleb
Caleb on 27 Aug 2012
Yes. Just export the image as some variable, say img, in the workspace.

Sign in to comment.

Accepted Answer

Oleg Komarov
Oleg Komarov on 27 Aug 2012
Edited: Oleg Komarov on 27 Aug 2012
Example:
assignin('base','img',yourpic)
  2 Comments
Oleg Komarov
Oleg Komarov on 27 Aug 2012
yes, but that should be executed by the GUI. You can create a pushbutton and link to it a callback that executes that line of code.
Caleb
Caleb on 27 Aug 2012
You're right. Your original code worked. I just have to close out of the GUI for that line of code to be executed. Thank you.

Sign in to comment.

More Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!