⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exa19.m

📁 市面上电力系统的范例 直得收藏学习的ㄧ本书
💻 M
字号:
t0= 0;   tfinal =15;              % time interval
x0 = [0.5, 0];                    % initial conditions
% [t,x] = ode23('electsys', t0, tfinal, x0);    % use with MATLAB 4
tspan = [t0, tfinal];                           % use with MATLAB 5
[t,x] = ode23('electsys', tspan, x0);           % use with MATLAB 5
subplot(2,1,1),plot(t,x)
title('Time response of an RLC series circuit')
xlabel('t, sec')
text(8,1.15,'Capacitor voltage')
text(8, 0.1,'Current')
vc= x(:,1);   i = x(:,2);
subplot(2,1,2),plot(vc, i)
title('Current versus capacitor voltage ')
xlabel('Capacitor voltage')
subplot(111)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -