Plot two functions at different intervals

5 ビュー (過去 30 日間)
Laura Ferrer Pascual
Laura Ferrer Pascual 2020 年 11 月 7 日
回答済み: Ameer Hamza 2020 年 11 月 7 日
Hi!
I have two sets of data that I want to plot at the same graphic but at different intervals. I have defined set 1 as BE and I want to plot it from 0 to 1000 and I have defined set 2 as RE and I want to plot it from 1000 to 4000. How can I do it?

回答 (1 件)

Ameer Hamza
Ameer Hamza 2020 年 11 月 7 日
This shows an example
BE = rand(1, 1001);
RE = rand(1, 3001)+2;
figure()
axes();
hold on
plot(0:1000, BE);
plot(1000:4000, RE);

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by