Plot function not work

16 次查看(过去 30 天)
Pencilmate
Pencilmate 2019-8-1
in program i used simple plot function but it is not execute
in all try its so that error:-
Attempt to execute SCRIPT plot as a function:
C:\Users\hp\Documents\MATLAB\plot.m

回答(2 个)

madhan ravi
madhan ravi 2019-8-1
You have a script named plot.m, move it/rename it/delete it from MATLAB's path.

Star Strider
Star Strider 2019-8-1
Your ‘plot.m’ script is overshadowing the MATLAB plot function. Change your script file name to ‘myPlot.m’ or something that does not overshadow any MATLAB funciton, to solve the problem.

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by