Start plot at origin

10 ビュー (過去 30 日間)
Maxime
Maxime 2023 年 2 月 28 日
編集済み: Voss 2023 年 3 月 2 日
Hi, I made this graph but I don't know how I can make both plots start at the origin (0,0). So the starting point of Y needs to be zero.
plot(tv,gnegate(d(:,3)),'r'); hold on; plot(tv,(r),'b')

採用された回答

Voss
Voss 2023 年 2 月 28 日
編集済み: Voss 2023 年 3 月 2 日
data1 = gnegate(d(:,3));
data2 = r;
data1_plot = data1 - data1(1);
data2_plot = data2 - data2(1);
plot(tv,data1_plot,'r'); hold on; plot(tv,data2_plot,'b')

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by