beta=5;omega = 2856;Qo = 10000;QL = Qo/(1+beta);omega_half = omega/(2*QL);U_in1 = 1;y1 = 0;alfa = (2*beta)./(1+beta);t1 = [0 4.2]dV1dt = @(t,V) ((U_in1*omega*beta)/Qo) - omega_half*V;[t1 V1] = ode15s(dV1dt, t1, y1)figure;plot(t1,V1);figureAout1=V1-1;plot(t1, Aout1);figureP1 = (V1 - U_in1).^2plot(t1, P1);.. further more plots
Now If I wish to produce all such plots for different values fo 'beta' and 'Qo'; which has been stated at the top; how can I go about that? I read the for loop documentation but failed to apply it here.
for eg. beta from 2 to 6 like 2.1, 2.2 etc.. and for Qo from 70000 to 120000 with 500 spacing. Thanks in advance to all the volunteers 🙂
Best Answer