when I try calling image function it is showing error;

CODE
A=imread('D:\test.jpg'); image(A)
ERROR MESSAGE
Warning: Function image has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict. Attempt to call constructor image with incorrect letter case.
Error in Untitled3 (line 2)
image(A)

답변 (1개)

Image Analyst
Image Analyst 2018년 2월 13일
Do this:
>> which -all image
You should see this:
built-in (C:\Program Files\MATLAB\R2017b\toolbox\matlab\specgraph\image)
but you won't because you named one of your m-files image.m. Change the name of that file so as to not have the same name as the built-in function and confuse MATLAB.

카테고리

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

질문:

2018년 2월 13일

답변:

2018년 2월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by