How to output a vector in MATLAB Function in Simulink?

8 views (last 30 days)
I tried to do it this way, but it does not work. How can I fix it?
Gaetano Trovato
Gaetano Trovato on 23 Oct 2022
Hi Paul,
Thank you for your reply.
It gives me this error, I cannot understand why.

Sign in to comment.

Answers (1)

Paul on 23 Oct 2022
One problem that I should have seen before is that this line
[xdot_3,xdot_4] = Minv * [same stuff here];
should be
temp = M_theta \ [same stuff here];
xdot_3 = temp(1);
xdot_4 = temp(2);
Does that solve all of the problems?


Find more on Simulink 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!

Translated by