Can you please explain the meaning for below error meessage code
조회 수: 2 (최근 30일)
이전 댓글 표시
A=imread('ICON_PHR1B_MS_201711091016570_ORT_3432577101-2.JPG');
>> figure,imshow(A);
Error: File: imageDisplayValidateParams.m Line: 170 Column: 1
The function "findImageType" was closed with an 'end', but at least one other function
definition was not. To avoid confusion when using nested functions, it is illegal to use
both conventions in the same file.
Error in imageDisplayParseInputs (line 79)
common_args = imageDisplayValidateParams(common_args);
Error in imshow (line 220)
[common_args,specific_args] = ...
댓글 수: 1
Adam
2019년 3월 19일
You have a file somewhere in which you have at least one function that is terminated with 'end' and at least one that is not. All functions defined in a file must use the same convention - this can either be to not use 'end' or it can be to use 'end', but you cannot mix and match. The most obvious example is if you use a GUIDE file, where all the auto-generated functions are not terminated by 'end' so any functions you add must also not be terminated by 'end'
채택된 답변
Jan
2019년 3월 19일
There is a missing end in the function imageDisplayValidateParams. As far as I can see, this is a Matlab toolbox function called from imshow. This function should be valid, so if an end is missing, you must have edited it. This can happen by accident, if you start Matlab as admin and open toolbox files. Therefore it is strongly recommended not to work as admin.
Restore the file imageDisplayValidateParams.m from your backup. See e.g. Recent Versions in Windows.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!