Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Im trying to read sensor value and store 50 diferent measures in real time to do the mode filter in each moment

1 回表示 (過去 30 日間)
Ignacio Gallego
Ignacio Gallego 2016 年 4 月 6 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have a system created in Simulink in which i want to read 50 sensor values (analog measure) to do mode filter for disturbing measures. My sistem works with a sample time "x" and i want to make a block "Matlab function" that works with a sample time "x/50".
The problem is in the function im trying to do beacuse i dont know the way of tell the function to read the measure 50 times before giving the output. A "for" loop doesnt work beacuse it reads the input and store the same value in all of 50 points of the array[i] and then the output filtered is always the input.

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by