examp02.m
来自「ADSP TOOLBOX: Version 2.0 and gui m-file」· M 代码 · 共 11 行
M
11 行
clc,echo on
%EXAMPLE 02
ts=0.05;t=0:ts:6; %Choose time axis with ts=0.05
x=10*exp(-t).*sin(2*t); %function x(t)
xs=cumsum(x); %running sum.
y=ts*xs; %Approximate running integral
ye=4-2*exp(-t).*(sin(2*t)+2*cos(2*t)); %Exact running integral
plot(t,x,t,y,t,ye),grid %overplot
echo off %end of example
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?