フィルターのクリア

How can I falsely increase the frequency of acquisition of a signal?

2 ビュー (過去 30 日間)
Guglielmo Giambartolomei
Guglielmo Giambartolomei 2022 年 5 月 12 日
コメント済み: Star Strider 2022 年 5 月 12 日
Hello,
I have to confront a 50 Hz (20 ms of period) pressure signal with a 5 Hz temperature signal (200 ms of period) to calculate the density. I would like to create 10 repeats of one temperature value. I was thinking to use a for cycle but I don't know how. Can anyone give me some suggestions? Thank you!

採用された回答

Star Strider
Star Strider 2022 年 5 月 12 日
I do not clearly understand what you want to do.
However, if you want both signals to have the same sampling frequency, use the resample function on one of them (preferably the one with the higher sampling frequency to resample it to a lower sampling frequency).
If you want to repeat one of the signals, use the repmat function.
  4 件のコメント
Guglielmo Giambartolomei
Guglielmo Giambartolomei 2022 年 5 月 12 日
Dear Star Strider,
I used the repelem function and it works!
I thank you very much!
Guglielmo
Star Strider
Star Strider 2022 年 5 月 12 日
As always, my pleasure!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by