作业帮 > 综合 > 作业

MATLAB里面plot命令突然失效

来源:学生作业帮 编辑:灵鹊做题网作业帮 分类:综合作业 时间:2024/06/13 02:10:29
MATLAB里面plot命令突然失效
因plot突然失效,故编一简短试验作图程序pltyudanduishu.m如下:
m=1:6
x=10.^m
y=1000.+x
figure
semilogx(x,y)
figure
loglog(x,y)
figure
plot(x,y)
运行结果是先后分别绘出了单对数和双对数曲线,却不能绘出线性plot(x,y)曲线,而且报错如下面3个?之后的句子,不明白是什么原因如何解决呢?
m =
1 2 3 4 5 6
x =
10 100 1000 10000 100000 1000000
y =
1010 1100 2000 11000 101000 1001000
Attempt to reference field of non-structure array.
Error in ==> plot at 28
if h.IsTimeFirst
Error in ==> pltyudanduishu at 7
plot(x,y)
MATLAB里面plot命令突然失效
你电脑内程序的问题,我试了一下,能够正常运行