Hello everyone, I wrote this function:
function dz = nocontrol(v,z,parameters)gammaT=??????????;phi_0 =0.6;psi_0 =0.6857;psi_c0 = 0.3;B=1.8;Lc = 3; %m
W = 0.25;H = 0.18;C = 0;dz = zeros(2,1);dz(1)=(1/(4*B*B*Lc))*(z(2)-gammaT*(z(1))^0.5);psi_c=psi_c0+H*(1+1.5*(z(2)/W-1)-0.5*(z(2)/W-1).^3);dz(2) =(1/Lc)*(psi_c-z(1));end
my problem is that I don't know how to write properly gammaT. I'd like to express it as a function, something like this:
gammaT_max = 0.8;gammaT_min = 0.7;A = (gammaT_max - gammaT_min)/2; %amplitude
b = gammaT_max - ((gammaT_max - gammaT_min)/2);gammaT = A*sin(w*t)+b
but I don't know how.
Best Answer