Why is my plot not showing anything

 Accepted Answer

Richard Burnside
Richard Burnside on 21 Jun 2023
Edited: Richard Burnside on 21 Jun 2023
Your plot command is using lower case w and your data is upper case W. Same for Z.

3 Comments

Also, Plot() is not the same as plot() since roughly MATLAB 4
I've corrected that now
w= [1:5] z= [2:2:10] plot(w,z) It's still not plotting
w= [1:5]; z= [2:2:10]; plot(w,z)

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!