% 如何用matlab划离散信号,比如说n=-10:10,求sin[n]的图像clc; clear all; close all;n = linspace(-10, 10);x = sin(n);plot(n, x)
Y=sin(t)Yz=c2d(Y,0.1,'zoh')具体请查c2d的用法,zoh的意思是zero order holder,0.1是采样频率
clear all>> n=-10:10;>> y=sin(n);>> stem(n,y) 运行结果: