Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = poly(0,'s')
- function createGraphResponse(zeta, wn, K, p, PO, inputType, figureIndex, titleGraph, beginInterval, stepInterval, endInterval)
- s11= -zeta*wn+%i*wn*sqrt(1-zeta^2);
- num = K;
- den=s^2+p*s+K;
- g=num/den;
- g=syslin('c',g);
- t=beginInterval:stepInterval:endInterval;
- figure(figureIndex);
- plot(t,csim(inputType,t,g));
- xgrid;
- title(titleGraph, "fontsize",4);
- ylabel("Amplitude", "fontsize", 3);
- xlabel("Tempo (s)", "fontsize", 3);
- colordef('white');
- endfunction
- //Exercicio 8
- createGraphResponse(0.733779,1.362808148,1.857246048,2,3.36,'step',0,"Resposta ao Degrau Unitário - Zeta 0.73",0,0.0001,10);
- //Exercicio 9
- createGraphResponse(0.4,2.5,6.25,2,3.36,'step',1, "Resposta ao Degrau Unitário - Zeta 0.4",0,0.0001,10);
- //Exercicio 10
- createGraphResponse(0.9,1.111,1.234321,1.998,3.36,'step',2, "Resposta ao Degrau Unitário - Zeta 0.9",0,0.0001,10);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement