matlab麻烦各位高手帮忙给看一下,我是新手!请多指教!
>>subplot(1,2,1)>>x=linspace(0,2*pi,30);>>y=sin(x);>>plot(x,y,'k')>>gridon>>xlabel('自...
>> subplot(1,2,1)
>> x=linspace(0,2*pi,30);
>> y=sin(x);
>> plot(x,y,'k')
>> grid on
>> xlabel('自变量x');
>> ylabel('函数y');
>> title('示意图');
>> hold on
>> plot(x,cos(x),'k')
>> axis([0 2*pi-1.2 1.2])
??? Error using ==> axis>LocSetLimits
Vector must have 4, 6, or 8 elements.
Error in ==> axis at 96
LocSetLimits(ax(j),cur_arg);
>> axis([02*pi-1.21.2])
??? axis([02*pi-1.21.2])
|
Error: Unexpected MATLAB expression.
>> axis([0,2*pi-1.2,1.2])
??? Error using ==> axis>LocSetLimits
Vector must have 4, 6, or 8 elements.
Error in ==> axis at 96
LocSetLimits(ax(j),cur_arg); 展开
>> x=linspace(0,2*pi,30);
>> y=sin(x);
>> plot(x,y,'k')
>> grid on
>> xlabel('自变量x');
>> ylabel('函数y');
>> title('示意图');
>> hold on
>> plot(x,cos(x),'k')
>> axis([0 2*pi-1.2 1.2])
??? Error using ==> axis>LocSetLimits
Vector must have 4, 6, or 8 elements.
Error in ==> axis at 96
LocSetLimits(ax(j),cur_arg);
>> axis([02*pi-1.21.2])
??? axis([02*pi-1.21.2])
|
Error: Unexpected MATLAB expression.
>> axis([0,2*pi-1.2,1.2])
??? Error using ==> axis>LocSetLimits
Vector must have 4, 6, or 8 elements.
Error in ==> axis at 96
LocSetLimits(ax(j),cur_arg); 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询