Borrar filtros
Borrar filtros

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

4 visualizaciones (últimos 30 días)
Sindia Casado
Sindia Casado el 16 de Oct. de 2012
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

Respuesta aceptada

Sachin Ganjare
Sachin Ganjare el 16 de Oct. de 2012
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!!!

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by