Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 1.12 KB | None | 0 0
  1. % Исходные данные
  2. J=0.35;
  3. La=0.01;
  4. %La=0.1;
  5. Ra=0.3;
  6. R_v=145;
  7. U_c=220 ;
  8. w=4000;
  9. Ce=205;
  10. Cm=200;
  11. %Номинальные данные
  12. F_nom=U_c*w/R_v;
  13. Potok_nom=0.007;
  14. w_nom=100;
  15. i_nom=50;
  16. M_nom=70;
  17. a=[w*Potok_nom U_c R_v*F_nom/w La*i_nom Ce*Potok_nom*w_nom i_nom*Ra U_c J*w_nom M_nom Cm*Potok_nom*i_nom];
  18. u=[1 1 1];
  19. u4=[0 0 0];
  20. x0=[0.983 1.0173 2.16];
  21. % x0=[0 0 0];
  22. c=[0.7479 -0.1896 0.5022];
  23. A4=[-27 0 0; 287*x0(3) -30 287*x0(1); -2.001376*x0(2) -2*x0(1) 0];
  24. B4=[U_c/(w*Potok_nom) -U_c/(La*i_nom) M_nom/(J*w_nom)];
  25. r_A=eig(A4);
  26. sim('laba3.slx');
  27. sim('laba4.slx');
  28. %Графики
  29. figure('Color','w');
  30. subplot(3,1,1);
  31. hPlot=plot(x(:,1),x(:,4),x(:,1),x1(:,2),':');
  32. set( hPlot, 'LineWidth', 1 );
  33. xlabel('t');
  34. ylabel('Ф')
  35. legend ('СНДУ','СЛДУ' )
  36. grid on;
  37. subplot(3,1,2);
  38. h2Plot=plot(x(:,1),x(:,3),x(:,1),x2(:,2),':');
  39. set( h2Plot, 'LineWidth', 1 );
  40. xlabel('t');
  41. ylabel('i');
  42. grid on;
  43. subplot(3,1,3);
  44. h3Plot=plot(x(:,1),x(:,2),x(:,1),x3(:,2),':');
  45. set( h3Plot, 'LineWidth', 1 );
  46. xlabel('t');
  47. ylabel('w')
  48. grid on;
  49. %Графики
  50. figure(1);
  51. plot(real(r_A), imag(r_A),'*');
  52. grid on;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement