Вы находитесь на странице: 1из 1

ans =

1.
-->pwd
ans =
C:\Users\usuario\Documents
-->clc
-->k=0:0.5:4;
-->n=length(k);
-->r=[];
-->for i=1:n
-->
p=poly([6+k(i),11 6 1],'s','c');
-->
r=[r,roots(p)];
-->end
-->clf()
-->plot(real(r(1,:)),imag(r(1,:)),'-o')
-->plot(real(r(2,:)),imag(r(2,:)),'--pr')
-->plot(real(r(3,:)),imag(r(3,:)),'-.pg')
-->a=gca();
-->a.x_location="middle";
-->a.y_location="middle";
-->a.title.font_style=5;
-->a.title.font_size=7;
-->a.grid=[6,6];
-->xtitle ('lugar de las raices del polonomio','parte real','parte imaginaria');
-->diary(0)

Вам также может понравиться