Conversion problem from scalar to Vector in Simulink.

1 view (last 30 days)
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.

Answers (0)

Community Treasure Hunt

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

Start Hunting!