Conversion problem from scalar to Vector in Simulink.

3 次查看(过去 30 天)
Hello, everyone,
I am working on a specific controller design by using the MATLAB Function block inside the subsytem.
But I am getting the ffollowing error:
Inferred size ('[1 9]') for data 'z_dot_1' does not match back propagated size ('scalar') from Simulink.
Component:MATLAB Function | Category:Coder error
Simulink cannot determine sizes and/or types of the outputs for block 'LBS/Subsystem/MATLAB Function' due to errors in the block body, or limitations of the underlying analysis. The errors might be inaccurate. Fix the indicated errors, or explicitly specify sizes and/or types for all block outputs.
Component:MATLAB Function | Category:Coder error
Simulink cannot determine sizes and/or types of the outputs for block 'LBS/Subsystem/MATLAB Function' due to errors in the block body, or limitations of the underlying analysis. The errors might be inaccurate. Fix the indicated errors, or explicitly specify sizes and/or types for all block outputs.
Component:Simulink | Category:Model error
An error occurred while propagating data type 'double' through 'LBS/Subsystem/MATLAB Function'.
Kindly help me to fix the following errors as soon as possible please.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Classical Control Design 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by