How do I append a plots after another?

14 ビュー (過去 30 日間)
Michael Lam
Michael Lam 2018 年 1 月 16 日
回答済み: Michael Lam 2018 年 1 月 16 日
I'm currently reading data from multiple binary data files within a directory. My goal is to concatenate all the data into one plot. How do I accomplish this without combining the datasets?
  2 件のコメント
Michael Lam
Michael Lam 2018 年 1 月 16 日
Combining the dataset has crashed matlab several time already.
Michael Lam
Michael Lam 2018 年 1 月 16 日
I've only found ways to overlap the plots using hold on and hold off, which don't accomplish my goal.

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

採用された回答

Michael Lam
Michael Lam 2018 年 1 月 16 日
Found my answer: Set the x values of the following dataset to start where the current ends.
hold on
plot([1:5],data1);
plot([6:10],data2);
hold off

その他の回答 (0 件)

カテゴリ

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