1. 首页
  2. 行业
  3. 电信
  4. matlab代码

matlab代码

上传者: 2019-05-13 14:27:57上传 M文件 766B 热度 20次
%ch2problem6main.mclear;R=100;L=2e-3;C=1e-7;%设置电路元件的参数ts=1e-6;t_start=-1e-4;t_end=16e-4;t=t_start:ts:t_end;%设置求解的离散时间点序列i_L0=0;u_C0=0;%系统初始状态为零x0=[i_L0;u_C0];%系统状态变量初始赋值Ts=400e-6;%矩形波周期Hs=2.5;Ls=-2.50;tic[t_out,x_out]=ode45('ch2problem6statefun',t,x0,[],R,L,C,Ts,Hs,Ls);%仿真
下载地址
用户评论