Matlab求助:Inputs must be a scalar and a square matrix
来源:学生作业帮 编辑:作业帮 分类:数学作业 时间:2024/06/05 12:00:43
Matlab求助:Inputs must be a scalar and a square matrix
x=0:0.1:5;
y=sqrt((442.1*cos(x+4)-12.4)^2+(442.1*sin(x+4)-174.9)^2);
运行后就出现了上面的.
x=0:0.1:5;
y=sqrt((442.1*cos(x+4)-12.4)^2+(442.1*sin(x+4)-174.9)^2);
运行后就出现了上面的.
把y的表达式改成下面就可以了
y=sqrt((442.1.*cos(x+4)-12.4).^2+(442.1.*sin(x+4)-174.9).^2);
错误出现的原因,矩阵元素的幂,不等于矩阵的幂,矩阵的幂是 ^ 而矩阵元素的幂就是 .^
请注意区别
y=sqrt((442.1.*cos(x+4)-12.4).^2+(442.1.*sin(x+4)-174.9).^2);
错误出现的原因,矩阵元素的幂,不等于矩阵的幂,矩阵的幂是 ^ 而矩阵元素的幂就是 .^
请注意区别
Matlab求助:Inputs must be a scalar and a square matrix
matlab 急救 Inputs must be a scalar and a square matrix.
matlab Error using ==> mpower Inputs must be a scalar and a
matlab错误 Error using ==> mpower Inputs must be a scalar and
matlab报错?Error using ==> mpower Inputs must be a scalar and
matlab计算时出现“ Error using ==> mpower Inputs must be a scalar
matlab报错Z must be a matrix, not a scalar or vector,哪里出错了?
matlab程序运行错误 “Z must be a matrix,not a scalar or vector.”
matlab 为什么会出现Z must be a matrix,not a scalar or vector
matlab使用插值进行着色处理Z must be a matrix,not a scalar or vector
matlab Matrix must be square什么情况?
matlab总是mpower Matrix must be square.