问题描述:
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.
>> 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.
问题解答:
我来补答展开全文阅读