Simulink cannot determine sizes and/or types of the outputs for block 'slexSVMIonospherePredictExample/MATLAB Function'
14 views (last 30 days)
Show older comments
Whenever I simulate this simulink model, the error I do get are as follow:
Simulink cannot determine sizes and/or types of the outputs for block 'slexSVMIonospherePredictExample/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
Please, what can I do to rectify the problem?
0 Comments
Answers (1)
T.Nikhil kumar
on 1 Dec 2023
Hello Hammed,
I understand that you are facing an error with your ‘MATLAB Function’ block in your model. I assume that you are following the example regarding ‘Predict Class Labels using MATLAB Function Block’ example from MathWorks Documentation.
The error message suggests that there are some errors in the function defined in the 'slexSVMIonospherePredictExample/MATLAB Function' block. Usually, such type of error messages is preceded with an error message specific to the block. This message would indicate the actual cause of the error.
Examples in the documentation generally work seamlessly. I would suggest you follow all the mentioned steps in the example one-by-one, since data required by the model is generated in previous steps, before opening the Simulink model. Specifically, the linear SVM model and the dataset need to be loaded/saved before simulating the Simulink model.
Refer to the following MathWorks documentation for the exact steps in the example:
Hope this helps!
0 Comments
See Also
Categories
Find more on Simulink Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!