matlab画出x[n]=(u[sin1/2πn]-u[sin(1/2πn-1/2π)](u[n+5]-u[n-5])的离散时间序列图形.>>n=-10:10;>>x1=heaviside(n+5)-heaviside(n-5);>>figure('color','w','position',[100 100 640 480]);>>subplot(5,1,1)>>stem(n,x1)>>x2=heaviside(n+4)-heaviside
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/28 20:17:50
matlab画出x[n]=(u[sin1/2πn]-u[sin(1/2πn-1/2π)](u[n+5]-u[n-5])的离散时间序列图形.>>n=-10:10;>>x1=heaviside(n+5)-heaviside(n-5);>>figure('color','w','position',[100 100 640 480]);>>subplot(5,1,1)>>stem(n,x1)>>x2=heaviside(n+4)-heaviside
matlab画出x[n]=(u[sin1/2πn]-u[sin(1/2πn-1/2π)](u[n+5]-u[n-5])的离散时间序列图形.
>>n=-10:10;
>>x1=heaviside(n+5)-heaviside(n-5);
>>figure('color','w','position',[100 100 640 480]);
>>subplot(5,1,1)
>>stem(n,x1)
>>x2=heaviside(n+4)-heaviside(n+1)+heaviside(n)-heaviside(n-3)+heaviside(n-4)-heaviside(n-5);
>>subplot(5,1,2);
>>stem(n,x2)
>>x3=heaviside(n+5)-heaviside(n+4)+heaviside(n+3)-heaviside(n)+heaviside(n-1)-heaviside(n-4);
>>subplot(5,1,3);
>>stem(n,x3)
>>x4=x2-x3;
>>subplot(5,1,4);
>>stem(n,x4)
>>x5=x4.*x1;
>>subplot(5,1,5);
>>stem(n,x5)
显示错误
x1=heaviside(n+5)-heaviside(n-5);
|
Error:The input character is not valid in MATLAB statements or expressions.
matlab画出x[n]=(u[sin1/2πn]-u[sin(1/2πn-1/2π)](u[n+5]-u[n-5])的离散时间序列图形.>>n=-10:10;>>x1=heaviside(n+5)-heaviside(n-5);>>figure('color','w','position',[100 100 640 480]);>>subplot(5,1,1)>>stem(n,x1)>>x2=heaviside(n+4)-heaviside
因为那句话的分号是中文的.把;改成;就可以了.