S-function level 1, not enough inputs arguments??
Afficher commentaires plus anciens
Hi!
I'm trying to do a S-function with a matlab script, but I can't. Matlab gives me an error when I try to run it. The error is the following:
"Error in 'prueba1/S-Function1' while executing MATLAB S-function 'mrflap', flag = 3 (output), at time 0.0. Caused by: Not enough input arguments."
I've checked the part of flag 3 and I have not been able to find the error.
function sys=mdlOutputs(t,x,u,m,gamma,rho,a,e,c,I_b,R,g,Omega,M_b)
%Inputs
p =u(1); q =u(2); A_1 =u(3); B_1 =u(4); bV_x =u(5); bV_y =u(6); bV_z =u(7); v_1 =u(8); theta_0 =u(9);
%Main Rotor Flapping Equations
beta_1s=...;
beta_1c=... ;
%Outputs
sys(1)=beta_1s; sys(2)=beta_1c;
I have to say that first I run a file with all the constants that I need.
Can someone help me please?
I would be very grateful.
Thanks
Réponses (0)
Catégories
En savoir plus sur Integrate External Code dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!