matlab 画图,想加图形注释,哪错了?

问题描述:

matlab 画图,想加图形注释,哪错了?
>> x=0:0.1:10;
subplot(2,2,1)
plot(x,sin(x),'c-.')
xlable(‘x’)
ylable(‘y’)
title(‘sin(x)’)
subplot(2,2,2)
plot(x,cos(x),'b:')
subplot(2,2,3)
plot(x,sin(2*x),'r-*')
subplot(2,2,4)
plot(x,cos(2*x),'g:o')
按“enter”后,提示
? xlable(‘x’)

Error: Missing variable or function.
1个回答 分类:综合 2014-09-27

问题解答:

我来补答
x=0:0.1:10;
subplot(2,2,1)
plot(x,sin(x),'c-.')
xlabel('x')
ylabel('y')
title('sin(x)')
subplot(2,2,2)
plot(x,cos(x),'b:')
subplot(2,2,3)
plot(x,sin(2*x),'r-*')
subplot(2,2,4)
plot(x,cos(2*x),'g:o')
1.请在编程时使用英文输入法,切忌不使用中文输入法.
2.label单词错误.
 
 
展开全文阅读
剩余:2000
上一页:单调性最小值
下一页:溶质质量