Chp8ex3.m
资源名称:power.rar [点击查看]
上传用户:eighthdate
上传日期:2014-05-24
资源大小:270k
文件大小:1k
源码类别:
其他行业
开发平台:
Matlab
- fprintf('n Wait simulation is in process. n')
- VF = 400; rF = 0.4; iF0 = VF/rF;
- f = 60; w = 2.*pi*f;
- d = 0; d = d*pi/180;
- t0 = 0 ; tfinal = 0.80;
- i0 = [0; iF0; 0; 0;]; % Initial currents
- %[t,i] = ode45('llshort', t0, tfinal, i0); % use for MATLAB 4
- tspan = [t0, tfinal]; % use for MATLAB 5
- [t,i] = ode45('llshort', tspan, i0); % use for MATLAB 5
- ib=i(:,1); iF=i(:,2); % ib = Armature current iF=Field current
- figure(1), plot(t,ib), xlabel('t, sec'), ylabel('ib, A'), grid
- title(['Line-line short circuit ib, ','delta = ', num2str(d)])
- figure(2), plot(t,iF), xlabel('t, sec'), ylabel('iF, A'), grid
- title(['Line-line short circuit iF, ','delta = ',num2str(d)])