- 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?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Réponse acceptée
Cris LaPierre
le 2 Avr 2024
Modifié(e) : Cris LaPierre
le 5 Avr 2024
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Line Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!