Can I input an array of derivatives to the integrator and obtain an array as output?

1 回表示 (過去 30 日間)
RANGASWAMY
RANGASWAMY 2022 年 7 月 14 日
回答済み: Vinay 2024 年 9 月 17 日
I am new to Simulink/Matlab. I have a 2-element array of time-derivatives as input to a Simulink integrator block and I want to get a corresponding array as output. Is this even admissible? If so, how do I specify the dimensions of the inputs and outputs to the integrator block?
I get the following error when I try to build the model.
Error in port widths or dimensions. Invalid dimension has been specified for 'Input Port 1' of '<foo>/Integrator'. I have seen some people ask similar questions
Thanks.

回答 (1 件)

Vinay
Vinay 2024 年 9 月 17 日
Hi Rangaswamy,
The Simulink ‘Integrator’ block accepts vector signal as an input and integrates each element individually. The error arises due to mismatch in the input size and output size defined using the ‘mux’ and ‘demux’ block.
I have attached a Simulink model demonstrating the vectorized input integration below:
Kindly refer to the below documentations ofnintegrator,mux and “demux for more details: “Integrator”: https://www.mathworks.com/help/releases/R2021b/simulink/slref/integrator.html

カテゴリ

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