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

1 回表示 (過去 30 日間)
Bob Meyes
Bob Meyes 2024 年 4 月 1 日
編集済み: Cris LaPierre 2024 年 4 月 5 日
.

採用された回答

Cris LaPierre
Cris LaPierre 2024 年 4 月 2 日
編集済み: Cris LaPierre 2024 年 4 月 5 日
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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by