Filter löschen
Filter löschen

How do I append a plots after another?

21 Ansichten (letzte 30 Tage)
Michael Lam
Michael Lam am 16 Jan. 2018
Beantwortet: Michael Lam am 16 Jan. 2018
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 Kommentare
Michael Lam
Michael Lam am 16 Jan. 2018
Combining the dataset has crashed matlab several time already.
Michael Lam
Michael Lam am 16 Jan. 2018
I've only found ways to overlap the plots using hold on and hold off, which don't accomplish my goal.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Michael Lam
Michael Lam am 16 Jan. 2018
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

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by