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)

Answers (1)

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.

Categories

Find more on Images in Help Center and File Exchange

Asked:

on 13 Feb 2018

Answered:

on 13 Feb 2018

Community Treasure Hunt

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

Start Hunting!