Posts by user13053456 • 1 point
2 posts
-
0
votes0
answers18
viewsQ: S-Function error: Output returned by S-Function 'Hi_plant_sfcn' in 'Untitled/S-Function' During flag=3 call must be a real vector of length 1
S-Function brings the following message: "Output returned by S-Function 'Hi_plant_sfcn' in 'Untitled/S-Function' During flag=3 call must be a real vector of length 1" my code: function…
matlabasked user13053456 1 -
0
votes0
answers22
viewsQ: Configuring the output of a Matlab S-Function
I have the following codes in Matlab. function dx=massamola(t,x,u) m=1; k=1; b=1; x1 = x(1); x2 = x(2); dx1 = x(2); dx2 = -(k/m)*x1-(b/m)*x2+(1/m)*u; dx=[dx1;dx2]; soon after I have a specific code…
matlabasked user13053456 1