Exporting an Image from a GUI to the Command Line

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 件のコメント

Oleg Komarov
Oleg Komarov 2012 年 8 月 27 日
I don't think you mean the command line but the base workspace.
Caleb
Caleb 2012 年 8 月 27 日
Yes. Just export the image as some variable, say img, in the workspace.

サインインしてコメントする。

 採用された回答

Oleg Komarov
Oleg Komarov 2012 年 8 月 27 日
編集済み: Oleg Komarov 2012 年 8 月 27 日

0 投票

Example:
assignin('base','img',yourpic)

2 件のコメント

Oleg Komarov
Oleg Komarov 2012 年 8 月 27 日
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 2012 年 8 月 27 日
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.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Convert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by