比如对y=cos(2*pi*t)采样
产生这个序列的方法及采样
t=0:0.01:1;
y=cos(2*pi*t);
fs=input('please input the fs=');
n=0:1/fs:1;
y=cos(2*pi*n)
这样可以? 感觉和用t=0:0.01:1没有区别嘛
还有种
syms t;
y=cos(2*pi*t);
fs=input('please input the fs=');
n=0:1/fs:1;
y=cos(2*pi*n)
个人感觉syms t的比较好点....蝈蝈们讨论下吧
