Exporting an Image from a GUI to the Command Line

조회 수: 1 (최근 30일)
Caleb
Caleb 2012년 8월 27일
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일
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개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by