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

조회 수: 1 (최근 30일)
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 CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by