- You never define your x variable, f
- Your code calculates a single value for Vrms
My graph is not plotting my data. How do I make it graph Vrms?
37 views (last 30 days)
Show older comments
Accepted Answer
Cris LaPierre
on 2 Apr 2024 at 0:06
Edited: Cris LaPierre
on 5 Apr 2024 at 14:32
Two issues
By default, semilogx does not use markers. Therefore, when you plot a single point, there is no line, so it appears as if nothing got plotted. Add a marker style to your LineSpec in order to see it.
plot(5,5) % no marker style
hold on
plot(4,4,'go-') % includes a marker style
hold off
legend
0 Comments
More Answers (0)
See Also
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!