12 lead ECG graph problem

2 次查看(过去 30 天)
Stephen
Stephen 2013-10-19
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 个评论
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