Printing a plot but the graph is not showing, worked literally a couple days ago

3 views (last 30 days)
I'm having to code a project and I've gone to office hours for help and I;ve finished the code, and it was showing my graph just a couple days ago. I log back onto my code and now the graph isn't showing. The plot will show, but there's not lines or anything showing my graph that im trying to print out.
lambda = I/b(i);
V = J * lambda/(2*pi) + V_inf*sin(beta);
V = [V:V(1)];
figure
plot(V);
This is the part of my code that has to work with the graph. I've already tried changing the brackets to parentheses but that does not change anything.
I'm still new to matlab so anything helps.
  6 Comments
Torsten
Torsten on 6 Mar 2022
Edited: Torsten on 6 Mar 2022
What if you remove the line
V = [V:V(1)];
In my opinion, it does not make much sense.

Sign in to comment.

Answers (0)

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!