MATLAB出现Warning: Integer operands are required for colon operator when used as index.

这个问题是我在用linspace时候出现的,是因为参数Fs/2和N/2中出现了小数,所以报错,但是程序还能运行。如果对你的程序有影响,可以考虑将参数改为整数。

f=linspace(0,Fs/2,N/2);

猜你喜欢

转载自blog.csdn.net/Davidietop/article/details/105966266