%例36-5 离散数据点直接绘图 x=sort(rand(1,10)); y=sort(rand(1,10)); plot(x,y)
离散化采样 源代码
汇集 离散化采样 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
%discrete signal n=-2:6; x=[0 0 1 2 1 0 -1 0 0]; stem(n,x,'filled');%用来画离散的信号 axis([-3,7,-2,3]); xlabel('n'); ylabel('x[n]')…
%dm07205 %观察离散正弦序列的周期性 n=0:40; subplot(2,1,1) stem(n,cos(n*pi/6),'filled') title('cos(n*pi/6)') subplot(2,1,2) stem(n,cos(4…
y = linspace(1,5,3) % 线性采样产生1到5间的3个数 y = logspace(1,2,5) % 对数采样10到102间的5个数
y = linspace(1,5,3) % 线性采样产生1到5间的3个数 y = logspace(1,2,5) % 对数采样10到102间的5个数