Synchronization / division of sequenced measurement data

3 ビュー (過去 30 日間)
Mepe
Mepe 2020 年 9 月 7 日
回答済み: Sulaymon Eshkabilov 2020 年 9 月 7 日
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!

回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2020 年 9 月 7 日
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()

カテゴリ

Help Center および File ExchangeTwo y-axis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by