Execution of script image as a function is not supported

36 views (last 30 days)
Error in images.internal.basicImageDisplay (line 24)
hh = image(cdata, ...
Error in imshow (line 330)
hh = images.internal.basicImageDisplay(fig_handle,ax_handle,...
Error in image_1 (line 101)

Sign in to comment.

Accepted Answer

Steven Lord
Steven Lord on 25 May 2023
You've likely created your own image.m file that's taking precedence over the image function included in MATLAB. To check this run the following command.
which -all image
built-in (/MATLAB/toolbox/matlab/specgraph/image)
If there is an image.m not under matlabroot you should rename that script file.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!