What is the error in my state space model?
Show older comments
Hi everyone, I have a state-space model here, which sent output u to MATLAB Function. Inside of MATLAB Function I declare Function [A,B,C,D] = input(u) and the if loop as the attached picture.
But when i run the simulation, It says invalid Matrix A in state space (I set A,B,C and D in each A,B,C,D block) Please tell me where is my mistake in my model/matlab function. Thank you in advance!!

Accepted Answer
More Answers (0)
Categories
Find more on General Applications in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!