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 日

0 投票

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 ExchangeImages についてさらに検索

質問済み:

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