用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/12/22 01:41:57
用matlab,提示错误?Error:File:D:\m\work\Untitled.mLine:16Column:26MissingMATLABoperato程序如下,帮忙看看怎么改n=[0:1:1

用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开始