q255.m

来自「电路与系统专业的matlab程序。有很多经典的实例。」· M 代码 · 共 19 行

M
19
字号
%example for stem3 and stairs
%chapter 5

th = (0:127)/128*2*pi;
x = cos(th);
y = sin(th);
f = abs(fft(ones(10,1),128));
stem3(x,y,f','d','fill')
view([-65 30])

alpha = .01;
beta = .5;
t = 0:10;
f = exp(-alpha*t).*sin(beta*t);
stairs(t,f)
hold on
plot(t,f,'--*')
hold off

⌨️ 快捷键说明

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