12 lead ECG graph problem

2 Ansichten (letzte 30 Tage)
Stephen
Stephen am 19 Okt. 2013
Kommentiert: Walter Roberson am 21 Okt. 2013
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!

Antworten (1)

sixwwwwww
sixwwwwww am 19 Okt. 2013
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 Kommentare
sixwwwwww
sixwwwwww am 19 Okt. 2013
You are welcome
Walter Roberson
Walter Roberson am 21 Okt. 2013
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.

Melden Sie sich an, um zu kommentieren.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by