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

1 回表示 (過去 30 日間)
Kevin Gaukel
Kevin Gaukel 2013 年 9 月 7 日
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

採用された回答

Image Analyst
Image Analyst 2013 年 9 月 7 日
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 件のコメント
Kevin Gaukel
Kevin Gaukel 2013 年 9 月 8 日
編集済み: Kevin Gaukel 2013 年 9 月 8 日
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.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by