?? sy_ge_damp_3duanlu_sol.m
字號:
% 編寫求解空載建立電壓微分方程的函數(sy_ge_damp_3duanlu_sol)
function sy_ge_damp_3duanlu_sol
%設定時間和初始值
tspan = [0 6];
y0 = [20;0;0;0;0];
% 方程求解
[t,y]=ode113('sy_ge_damp_3duanlu_ode',tspan,y0);
%繪制定子電流和勵磁電流變化規律
subplot(3,1,1);
plot(t,y(:,1));
% 下面指定縱橫軸標簽
xlabel('Time[s]')
ylabel('Id[A]')
hold on
subplot(3,1,2);
plot(t,y(:,3));
% 下面指定縱橫軸標簽
xlabel('Time[s]')
ylabel('Ifd[A]')
hold on
w=314;
ia=y(:,1).*sin(w*t)+y(:,2).*cos(w*t);
subplot(3,1,3);
plot(t,ia)
% 下面指定縱橫軸標簽
xlabel('Time[s]')
ylabel('Ia[A]')
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -