12 lead ECG graph problem

조회 수: 2 (최근 30일)
Stephen
Stephen 2013년 10월 19일
댓글: Walter Roberson 2013년 10월 21일
I am a beginner at Matlab and I have 500 samples to manipulate into an Single beat 12 lead ECG. I have found all the corresponding leads via the formula and have used the subplot function to plot each function on a 4x3 figure. The problem I have is the 12 graphs need to be on the same axis with no spaces between them can anyone shed any light on how I would go about this?
If anything is unclear please let me know and I will upload what I have done so far.
Thanks!

답변 (1개)

sixwwwwww
sixwwwwww 2013년 10월 19일
Dear Stephen you can do like this:
plot(x1, y1, x2, y2, x3, y3, x4, y4, x5, y5, x6, y6, x7, y7, x8, y8, x9, y9, x10, y10, x11, y11, x12, y12), legends('y1', 'y2', 'y3', 'y4', 'y5', 'y6', 'y7', 'y8', 'y9', 'y10', 'y11', 'y12')
or you can use
hold on
command to plot many graphs in same figure
  댓글 수: 3
sixwwwwww
sixwwwwww 2013년 10월 19일
You are welcome
Walter Roberson
Walter Roberson 2013년 10월 21일
Use a single figure. Add different X and Y offsets to each of the different plots. For example, for the bottom left add (0,0); for V2 you might add 2 to X and 1 to Y.
If each plot is to be 4 units wide, then add 6*(column - 1) to X.
If each plot is to be 4 units high, then add 6*(row - 1) to Y, where row starts at 1 at the bottom.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Spectral Measurements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by