When I put in a simple vector to be plotted, whenever I call the plot function, it wouldn't run and the script will have an error"
Screen Shot 2019-03-20 at 12.20.08 AM.png

 Accepted Answer

madhan ravi
madhan ravi on 19 Mar 2019
Edited: madhan ravi on 19 Mar 2019

3 votes

You have a script named plot.m please remove it from the path ,rename or delete it , it is shadowing the in-built plot() function.

3 Comments

thank you very much! it totally worked fine now :)
Thanks,I had the same issues.
How to remove script plot.m

Sign in to comment.

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!