Simulink cannot unify the dimensions of the multiplexed signal at output

20 次查看(过去 30 天)
hello,i have a error.
who can help me!!!
Simulink cannot unify the dimensions of the multiplexed signal at output port 1 of 'untitled0417/PSS /In1' to match the input dimension of input port 1 of 'untitled0417/PSS /Transfer Fcn1'. Specifically, Simulink cannot unify {[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1],[-1]} to match [-1]. Consequently, Simulink cannot propagate dimension information from output port 1 of 'untitled0417/PSS /In1' to input port 1 of 'untitled0417/PSS /Transfer Fcn1'.

回答(1 个)

Animesh
Animesh 2024-5-2
Hey @he
Seems like you are trying to pass values from inport block to transfer function but are unable to do so because transfer function block expects a single value as an input.
In this case we can use the 1x2 demux block and pass the value from one of the 2 outports to the transfer function block. Since all the 24 values are the same, this technique will probably yield the desired result.
I have attached an image below for better understanding:
You can refer the following MathWorks documentation for more information:

类别

Help CenterFile Exchange 中查找有关 General Applications 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by