How do I append a plots after another?

조회 수: 21 (최근 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 CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by