フィルターのクリア

How to normalize measured data?

2 ビュー (過去 30 日間)
Jay Muller
Jay Muller 2015 年 10 月 12 日
コメント済み: Jay Muller 2015 年 10 月 12 日
I have a large amount of measurements, where the time interval among the data points is not equal (but monotonically increasing). For certain operations, such as filters, however, I need equal time intervals. How can I normalize the data?
I thought of creating an X-vector with equal time intervals 0:1E-10:1, find the measured X-values closest to these intervals, and take the Y value of that finding. However, due to the large amount of data, this is a very lengthy process. Are there any better and more efficient solutions?
This is my code so far:
[Time, Load, ~] = textread('2.txt', '%f %f %f');
TimeNorm = 0:1E-10:1;
for ii = 1:size(TimeNorm,2)
val = TimeNorm(ii);
[N,bin]=histc(val,Time);
LoadNorm(ii) = Load(bin);
end
Thanks very much!

採用された回答

dpb
dpb 2015 年 10 月 12 日
Unless the timing is grossly out, probably
doc interp1
is about as good a job as you can do.
  1 件のコメント
Jay Muller
Jay Muller 2015 年 10 月 12 日
Thanks, that's it!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFourier Analysis and Filtering についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by