フィルターのクリア

Simulink cannot determine sizes and/or types of the outputs for block 'slexSVMIo​nospherePr​edictExamp​le/MATLAB Function'

24 ビュー (過去 30 日間)
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?

回答 (1 件)

T.Nikhil kumar
T.Nikhil kumar 2023 年 12 月 1 日
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!

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by