Synchronization / division of sequenced measurement data

3 Ansichten (letzte 30 Tage)
Mepe
Mepe am 7 Sep. 2020
Hello,
I have measurement data that were recorded in different sequences. Unfortunately I always have a different number. For example, I have the range 0 - 10 on the X axis with a total of 1000 measurement data. In the range 10-20 I have 1300 measurement data. So far, I have always mapped these separately for display in the plot (plot (0-10, y1); hold on; plot (10-20, y2); ...). Now I would like to have a single curve for further processing. Because of the different division, I can't just add the vectors. Is there a possibility from the existing data to read out the measurement data with the same division? Or do you have another suggested solution?
Thank you so much!

Antworten (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov am 7 Sep. 2020
Hi,
Just to display all (two or more different sets of data), you can augment all your measured data sets, e.g.:
X_ALL = [x1, x2, x3, xn]; Y_all = [y1, y2, y3, yn];
plot(X_ALL, Y_ALL);
An alternative way might be resample the data sets to make them all with a uniform division by using: resample()

Kategorien

Mehr zu Two y-axis finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by