Error in plot function

11 views (last 30 days)
Louanne Grace de Sales
Louanne Grace de Sales on 19 Mar 2019
Commented: Steven1 on 16 Jun 2023
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
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.
  2 Comments
Louanne Grace de Sales
Louanne Grace de Sales on 20 Mar 2019
thank you very much! it totally worked fine now :)
Steven1
Steven1 on 16 Jun 2023
Thanks,I had the same issues.

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!