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

📄 examp18.m

📁 ADSP TOOLBOX: Version 2.0 and gui m-files
💻 M
字号:

clc,echo on 
%EXAMPLE 18 
tr = 0:0.05:6;t=tr;               % Time array
IC = [1; 2];                      % Initial condition array
RHS=[1 2]; LHS=[1 4 3];           % Coefficient arrays of LHS and RHS
X='sin(10*t).*(t>=0 & t<=pi)';    % Input as string variable
y=ctsim(RHS,LHS,X,tr,IC,'rk2');   % Response using 2nd order RK
plot(t,eval(X),tr,y)              % Plot result
echo off %end of example

⌨️ 快捷键说明

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