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

📄 examp03.m

📁 ADSP TOOLBOX: Version 2.0 and gui m-files
💻 M
字号:
clc,echo on 
%EXAMPLE 03
ts=0.05;t=0:ts:6;l=length(t);          % Choose time axis with ts=0.05
x=10*exp(-t).*sin(2*t);                % function x(t)
z=diff(x)/ts;                          % numerical derivative. NOTE: ts=0.05
ze=10*exp(-t).*(2*cos(2*t)-sin(2*t));  % Exact derivative
plot(t,x,t(2:l),z,t,ze),grid           % Plot numerical and exact result
echo off %end of example

⌨️ 快捷键说明

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