Why do i get this error? can you explain it to me please

5 views (last 30 days)
Attempt to execute SCRIPT image as a function:
C:\Users\WASD\Documents\MATLAB\image.m
Error in images.internal.basicImageDisplay (line 24)
hh = image(cdata, ...
Error in imshow (line 293)
hh = images.internal.basicImageDisplay(fig_handle,ax_handle,...
Error in elimina_objeto (line 7)
imshow(a)

Answers (1)

Star Strider
Star Strider on 13 Oct 2019
You have a script that you named ‘image’:
C:\Users\WASD\Documents\MATLAB\image.m
That is the problem. The solution is to rename your script to something that does not overshadow any MATLAB function.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!