how to obtain smooth curve from the data stored in binary file?

4 ビュー (過去 30 日間)
megha
megha 2023 年 11 月 21 日
回答済み: Walter Roberson 2023 年 11 月 21 日
I have a binary file with unsigned 2-bytes, little-endiness data stored in it (MATLAB does not allow Binary file to get uploaded here).
I see that my data is much noisy than actual. I'd like to obtain a smooth curve instead of noisy one. Is there any way to obtain it?
fileID = fopen('output_file.bin');
data1 = fread(fileID,Inf,'*uint16','ieee-le');
plot(data1,'-b');
Any help is appriciated.
Thanks in advance!
  1 件のコメント
Walter Roberson
Walter Roberson 2023 年 11 月 21 日
You can zip the file and upload the .zip

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

回答 (1 件)

Walter Roberson
Walter Roberson 2023 年 11 月 21 日
You have the usual options, such as low-pass filter with lowpass or design a filter using designfilt or use a movmean or movmedian filter
There are also equivalent techniques such as taking fft(), zeroing high frequency components, and then inverse fft.
You might have reason to get into more specialized models such as ARX https://www.mathworks.com/help/ident/ref/arx.html

カテゴリ

Help Center および File ExchangeSmoothing and Denoising についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by