Concatenate 2/more graphs into 1 graph
Show older comments
I've a problem to combine 2 graphs into 1 graph. The data is taken from Read EDF file. Then I did the plotting for 2 different graphs. Then I get this graph

if you look at those graphs closely, actually both of them can be concatenated together, so that the second graph on the right started from 10-20, continuing the first graph on the left. But I can't figure it out how to do it. For your info, I also attached the code in here, so that it's clear what I mean. Thank you
tt = edfread('example.edf');
info = edfinfo('example.edf');
fs = info.NumSamples/seconds(info.DataRecordDuration);
recnum = 1;
signum = 1;
t = (0:info.NumSamples(signum)-1)/fs(signum);
y1 = tt.(signum){recnum};
recnum = 2;
signum = 1;
y2 = tt.(signum){recnum};
subplot(1,2,1); plot(t,y1); subplot(1,2,2); plot(t,y2)
Accepted Answer
More Answers (0)
Categories
Find more on Parametric Modeling in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

