Simulink cannot determine sizes and/or types of the outputs for block 'slexSVMIonospherePredictExample/MATLAB Function'
조회 수: 9 (최근 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?
댓글 수: 0
답변 (1개)
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!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Manual Performance Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!