sy_ge_damp_rduanlu_sol.m
来自「MATLAB电机仿真精华50例,源代码」· M 代码 · 共 23 行
M
23 行
% 编写求解空载建立电压微分方程的函数(sy_ge_damp_rduanlu_sol)
function sy_ge_damp_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 + =
减小字号Ctrl + -
显示快捷键?