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

1 vue (au cours des 30 derniers jours)
Kevin Gaukel
Kevin Gaukel le 7 Sep 2013
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

Réponse acceptée

Image Analyst
Image Analyst le 7 Sep 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 commentaire
Kevin Gaukel
Kevin Gaukel le 8 Sep 2013
Modifié(e) : Kevin Gaukel le 8 Sep 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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by