- #1

plexus0208

- 49

- 0

----------------------------------------------------------------

??? Input argument "S" is undefined.

Error in ==> RCPrototype at 11

Wpay = Tmax/((CDA0/S)/CL + cd/CL + CL/(pi*AR)) - Wfuse;

-----------------------------------------------------------------

MATLAB CODE:

function [WpayMax, constraint] = RCPrototype(AR, S, lambda)

Wfuse = 2.5;

Tmax = 0.70;

CDA0 = 0.004;

cd = 0.028;

CL = 1.0;

tau = 0.11;

eps = 0.03;

Wpay = Tmax/((CDA0/S)/CL + cd/CL + CL/(pi*AR)) - Wfuse;

WpayMax = max(abs(Wpay));

constraint = 0.018*((Wfuse + Wpay)/(E*tau*(tau^2+eps^2)))*(1+lambda)^3*(1+2*lambda)*(AR^3);

[WpayMax, constraint] = RCPrototype(0.5,0.5,0.5);

end