关于matlab中矩阵乘法问题我这哪错了?a=imread('G:\face\yaleB01_P02\images\yaleB01_P02A-025E+00.pgm');b=a*a'Error using ==> mtimesAt least one operand must be scalar.其中a .即480*640的矩阵.

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/30 18:57:19
关于matlab中矩阵乘法问题我这哪错了?a=imread('G:\face\yaleB01_P02\images\yaleB01_P02A-025E+00.pgm');b=a*a'Error using ==> mtimesAt least one operand must be scalar.其中a .即480*640的矩阵.
xݑ[KAʼf[D S? PΚ1, o/ xJf-AIgf&O'y"[̙soNΰ6lR[X5˻A]_hg-5`ȽHdag?)?(Ỳ

关于matlab中矩阵乘法问题我这哪错了?a=imread('G:\face\yaleB01_P02\images\yaleB01_P02A-025E+00.pgm');b=a*a'Error using ==> mtimesAt least one operand must be scalar.其中a .即480*640的矩阵.
关于matlab中矩阵乘法问题
我这哪错了?
a=imread('G:\face\yaleB01_P02\images\yaleB01_P02A-025E+00.pgm');
b=a*a'
Error using ==> mtimes
At least one operand must be scalar.
其中
a .
即480*640的矩阵.

关于matlab中矩阵乘法问题我这哪错了?a=imread('G:\face\yaleB01_P02\images\yaleB01_P02A-025E+00.pgm');b=a*a'Error using ==> mtimesAt least one operand must be scalar.其中a .即480*640的矩阵.
奇怪,我也试了,把它转成double就可以,uint8就不行,不过我得到的出错信息是Matrix dimensions must agree.你转成double型计算吧,本来uint8做乘法就不可靠,可能会溢出.
以上.
专业路过的老狼