I am using 'imshow' command in my code. Till yesterday my code was running properly, but from today i am getting error as shown below * * *
"Attempt to call constructor image with incorrect letter case.
Error in basicImageDisplay (line 24)
hh = image(cdata, ...
Error in imshow (line 266)
hh = basicImageDisplay(fig_handle,ax_handle,...
Error in Untitled2 (line 19)
imshow(thisFrame);* *
* "

댓글 수: 2

Geoff Hayes
Geoff Hayes 2014년 11월 9일
Rohan - have you created a class that is named image or Image?
rohan gupta
rohan gupta 2014년 11월 9일
No i have not created any such class.

댓글을 달려면 로그인하십시오.

 채택된 답변

Image Analyst
Image Analyst 2014년 11월 9일

0 개 추천

Do this on the command line
which -all image
and tell us what it says. You should see this:
>> which -all image
built-in (C:\Program Files\MATLAB\R2014b\toolbox\matlab\specgraph\image)

댓글 수: 3

rohan gupta
rohan gupta 2014년 11월 9일
this is what i am getting
C:\Users\Admin\Documents\MATLAB\image.m
built-in (C:\Program Files\MATLAB\R2014a\toolbox\matlab\specgraph\image) % Shadowed
Guillaume
Guillaume 2014년 11월 9일
편집: Guillaume 2014년 11월 9일
Well, there is your problem. matlab's built-in function image.m is shadowed by your C:\Users\Admin\Documents\MATLAB\image.m
Rename that function to something else that is not the name of a matlab built-in function and you'll be fine.
Do not use image as a name for anything.
rohan gupta
rohan gupta 2014년 11월 9일
thanks, I got it. I have used 'image' as the name of one of the file name.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Images에 대해 자세히 알아보기

질문:

2014년 11월 9일

댓글:

2014년 11월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by