I am getting this error in all of the programs in which i have used the command imhist
Attempt to execute SCRIPT line as a function:
C:\Users\user\Desktop\matlab\line.m
Error in imhist>plot_result (line 207)
line(limits([1 2 2 1 1]),limits([3 3 4 4 3]),...
Error in imhist (line 115)
plot_result(x, y, map, isScaled, class(a), range);
Error in ass11 (line 11)
imhist(im);
please help me solve this problem.

Antworten (1)

Ameer Hamza
Ameer Hamza am 7 Mai 2020

0 Stimmen

line() is the name of MATLAB's function. But you also created a file named line at this location
C:\Users\user\Desktop\matlab\line.m
This file is also on MATLAB's path and hence confusing the MATLAB about the definition of its own line function. Change the name of your script to something else.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 7 Mai 2020

Beantwortet:

am 7 Mai 2020

Community Treasure Hunt

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

Start Hunting!

Translated by