Trying to Put Logo on GUI - Getting Error that makes no sense

1 visualización (últimos 30 días)
I am trying to put a logo on my GUI. The approach I am using is the following:
axes(handles.axesOrbitalLogo);
imshow('OrbitalLogo.tif');
When I do this, I keep getting this error:
"Undefined function 'imshow' for input arguments of type 'char'."
It is as if I cannot put in the filename as a char, even though that is what everyone else I have seen do it - and have seen YouTube Videos showing that is EXACTLY how it's done. I am using MATLAB 2012a.
Please help!!
Kevin

Respuesta aceptada

Image Analyst
Image Analyst el 7 de Sept. de 2013
You probably don't have the Image Processing Toolbox. Type ver on the command line to check. If you don't, use image() instead of imshow(), but you'll need to call imread() first to get the data into an array. I don't believe image() takes a filename string directly.
  1 comentario
Kevin Gaukel
Kevin Gaukel el 8 de Sept. de 2013
Editada: Kevin Gaukel el 8 de Sept. de 2013
Thank you very much. I need to tweak the image to not distort the Logo, but I see that as a minor issue. I did check ver, and it indicates "license unknown". However, the previous version we have (2010a) has the Image Processing Toolbox included. I suspect we haven't completed the migration to 2012a yet.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox 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