📄 fangzhen.m
字号:
% 编写求解空载建立电压微分方程的函数(sy_ge_nodamp_rduanlu_sol)
function sy_ge_nodamp_rduanlu_sol
%设定时间和初始值
tspan = [0 10];
y0 = [0;0;0;0;0];
% 方程求解
[t,y]=ode113('sy_ge_damp_rduanlu_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
subplot(3,1,3);
plot(t,y(:,4))
xlabel('Time[s]')
ylabel('Ikd[A]')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -