フィルターのクリア

Tapped delay with Number of delays parameter of datatype "Single"

4 ビュー (過去 30 日間)
Dinesh Kathir Raj Mohan Kumar
Dinesh Kathir Raj Mohan Kumar 2022 年 9 月 6 日
編集済み: Andy Bartlett 2022 年 9 月 6 日
Hello,
I am trying to create a moving average filter and for that using a "Vector Concatenate" block together with a "Tapped Delay" block.
Simulink is only allowing to have the "Number of Delays" argument as double and nothing else !!
Is there a way to circumvent this limitation ?

採用された回答

Andy Bartlett
Andy Bartlett 2022 年 9 月 6 日
編集済み: Andy Bartlett 2022 年 9 月 6 日
I believe the block currently requires that the MATLAB code entered in the edit box for parameter
"Number of delays"
to evaluate to a double.
So if the text entered in the parameters edit field was
myParamNumberOfTaps
and myParamNumberOfTaps evalated to single or any non-double type then the error
"In block xyz, the data type for number of delays must be double"
would be thrown.
The not so friendly solution to avoiding the limitation is to change the text in the parameter edit field to.
double(myParamNumberOfTaps)
I've entered an enhancement request to make the block friendlier with regard to support of parameter data types.

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by