用matlab,提示错误?Error:File:D:\m\work\Untitled.m Line:16 Column:26 Missing MATLAB operato程序如下,帮忙看看怎么改n=[0:1:10];x=cos(0.48*pi*n)+cos(0.52*pi*n);figure(1)n1=[0:1:9];y1=x(1:1:10);subplot(2,1,1);stem(n1,y1);title('signal x(n)
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 13:55:19
用matlab,提示错误?Error:File:D:\m\work\Untitled.m Line:16 Column:26 Missing MATLAB operato程序如下,帮忙看看怎么改n=[0:1:10];x=cos(0.48*pi*n)+cos(0.52*pi*n);figure(1)n1=[0:1:9];y1=x(1:1:10);subplot(2,1,1);stem(n1,y1);title('signal x(n)
用matlab,提示错误?Error:File:D:\m\work\Untitled.m Line:16 Column:26 Missing MATLAB operato
程序如下,帮忙看看怎么改
n=[0:1:10];
x=cos(0.48*pi*n)+cos(0.52*pi*n);
figure(1)
n1=[0:1:9];
y1=x(1:1:10);
subplot(2,1,1);
stem(n1,y1);title('signal x(n),0
用matlab,提示错误?Error:File:D:\m\work\Untitled.m Line:16 Column:26 Missing MATLAB operato程序如下,帮忙看看怎么改n=[0:1:10];x=cos(0.48*pi*n)+cos(0.52*pi*n);figure(1)n1=[0:1:9];y1=x(1:1:10);subplot(2,1,1);stem(n1,y1);title('signal x(n)
我发现了三处错误
1. xlabel(‘frequency in pi units') 有中文左括号,中文单引号
2. 就是二楼说的,zeros前面有个逗号或者空格
3. x(n),我不知道你的目的. 你n=[0:1:10]; x(0) matlab没有的,下标从1开始