Error in Sliding Mode Controller Code
Ältere Kommentare anzeigen
I am facing error in my matlab simulink mode for sliding mode controller using reaching law and boundary layer function to reduce chattering.
I am not sure what I am doing wrong. I crossed checked my equations and implementations but they all look right to me. My simulink file is attached in the post. it has all functions necessary to run the model independently.
The error is:
Incorrect dimensions for matrix multiplication. Check that the number of columns in the first matrix matches the number of rows in the second matrix. To operate on each element of the matrix individually, use TIMES (.*) for elementwise multiplication.
Function 'MATLAB Function' (#32.427.430), line 21, column 30:
"C*f"
Launch diagnostic report.
Component:MATLAB Function | Category:Coder error
Block ''clutch_SlidingModeControl/MATLAB Function'' does not fully set the dimensions of output 'output'.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Test Execution finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!