My graph is not plotting my data. How do I make it graph Vrms?

37 visualizaciones (últimos 30 días)
Bob Meyes
Bob Meyes el 1 de Abr. de 2024 a las 23:25
Editada: Cris LaPierre el 5 de Abr. de 2024 a las 14:32
.

Respuesta aceptada

Cris LaPierre
Cris LaPierre el 2 de Abr. de 2024 a las 0:06
Editada: Cris LaPierre el 5 de Abr. de 2024 a las 14:32
Two issues
  1. You never define your x variable, f
  2. Your code calculates a single value for Vrms
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

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by