フィルターのクリア

Double y axis plot when two data sets are not starting from the same time

1 回表示 (過去 30 日間)
Joydeb Saha
Joydeb Saha 2022 年 5 月 31 日
回答済み: KSSV 2022 年 5 月 31 日
I have two data sets A and B. A = 20x1 and B=11x1. I want to make double y axis plot with these datasets. But the plot should be start with A at first. From the 10th point B will start. Means A and B will not start together.

採用された回答

KSSV
KSSV 2022 年 5 月 31 日
A = rand(20,1);
B = rand(11,1);
idx = 1:length(A) ;
plot(idx,A,'r')
hold on
plot(idx(10:end),B,'b')
legend('A','B')

その他の回答 (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