matlab运行遇到问题:Vectors must be the same lengths.
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/07/19 16:27:42
matlab运行遇到问题:Vectors must be the same lengths.
m=[1.0006 1.0000 0.9997 0.9997 1.0000 1.0006];
P=[1.0011 1.0000 0.9994 0.9994 1.0000 1.0001];
x = 37:0.5:42;
y = 0.9990:0.0005:1.0020;
plot(x,m,x,P);
请问是哪里出问题了
m=[1.0006 1.0000 0.9997 0.9997 1.0000 1.0006];
P=[1.0011 1.0000 0.9994 0.9994 1.0000 1.0001];
x = 37:0.5:42;
y = 0.9990:0.0005:1.0020;
plot(x,m,x,P);
请问是哪里出问题了
x这一行, 0.5改成1就对了.
m和P都是1×6的向量,
x = 37:0.5:42 出来却是1×12的向量,
向量长度不一样,所以画图报错啊,让你向量要保持同样长度.
m和P都是1×6的向量,
x = 37:0.5:42 出来却是1×12的向量,
向量长度不一样,所以画图报错啊,让你向量要保持同样长度.
matlab运行遇到问题:Vectors must be the same lengths.
matlab问题Vectors must be the same lengths.
MATLAB运行错误:Error using plot Vectors must be the same lengths
matlab plot 提示错误:Vectors must be the same lengths!
matlab中错误vectors must be the same lengths 是怎么回事?
matlab的Vectors must be the same lengths.错误
matlab提示“Vectors must be the same lengths.
跪等!matlab中Vectors must be the same lengths
matlab总是显示Vectors must be the same lengths,请大师帮忙,
求matlab高手~Error using plot Vectors must be the same lengths问
哪位大侠知道这个MATLAB的错误啊 plot Vectors must be the same lengths.
matlab在什么情况下出现Vectors must be the same lengths错误报告