フィルターのクリア

When I plot just one row from matrix it plots fine, but when I plot it with some other signals it always turns to zero. It only works when I plot ti alone, why?

2 ビュー (過去 30 日間)
Even when I plot both rows from matrix, that second one becomes zero and first one is displayed fine.
plot(t,I(2,:) this works and its not zero plot(t,I) this just display the first row and turns second to zero

採用された回答

Star Strider
Star Strider 2016 年 11 月 19 日
They probably have significantly different scales.
Try this:
figure(1)
subplot(2,1,1)
plot(t, I(1,:))
grid
subplot(2,1,2)
plot(t, I(2,:))
grid
  2 件のコメント
Marina Bobar
Marina Bobar 2016 年 11 月 20 日
Thank you, it works! Is there any way it could work on one graph?
Star Strider
Star Strider 2016 年 11 月 20 日
My pleasure!
To get it to work with one ‘t’ axis, I would use the yyaxis (in R2016a and later) or plotyy (earlier versions) function.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTwo y-axis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by