Plot 2 signals with different time axis in the same graph

5 ビュー (過去 30 日間)
Adriana Maria
Adriana Maria 2018 年 11 月 25 日
コメント済み: Adriana Maria 2018 年 11 月 25 日
Hi,
I need to plot 2 signals with different sample time in the same graph
For example:
-first signal time axis is something like this [1, 12, 24, 36, 46, 90]
-second signal time axis is something like this [2, 15, 30, 39, 80 ]

採用された回答

dpb
dpb 2018 年 11 月 25 日
plot(t1,y1) % first plot
hold on % add more
plot(t2,y2) % second line on top...
or, you can just do them both together using alternate calling syntax
plot(t1,y1,t2,y2)
will result in same plot

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by