필터 지우기
필터 지우기

How can I save the content of an axes using gui?

조회 수: 4 (최근 30일)
Sindia Casado
Sindia Casado 2012년 10월 16일
Hello everyone,
I am trying to save a graph (previously I made the plot command) that it is in a axes , using gui. My code is the following:
guardar=getimage(handles.axes11); if guardar==0 return end if isempty(guardar) return end % guardar en formatos formatos={'*.jpg','JPEG (*.jpg)';'*.png','PNG (*.png)';... '*.tif','TIFF (*.tif)';'*.gif','GIF (*.gif)'}; [nombre,ruta]=uiputfile(formatos,'GUARDAR IMAGEN'); if nombre==0 return end fname=fullfile(ruta,nombre); imwrite(guardar,fname);
When I am going to run this code I get the next message:
Undefined function 'getimage' for input arguments of type 'double'.
I don´t know what I am doing wrong. Maybe my code is not the best one. Could anyone help me with a different idea ? Where can be the mistake?
Thanks in advanced Sindia

채택된 답변

Sachin Ganjare
Sachin Ganjare 2012년 10월 16일
You get this error when the function isn't on the MATLAB path or in pwd.
Probabaly 'getimage' comes with image processing toolbox & this toolbox is not avaialbale in your licese.
Check with 'ver' command whether toolbox is present.
Hope it helps!!!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by