Inputs must have the same size.matlab代码错误for i =1:19;dizhi='C:\Users\zty\Desktop\2013\B\附件1\';wenjianming='0' & i & '.bmp';x=imread(dizhi & wenjianming);xi=im2double(x);endError using & Inputs must have the same size.
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/25 21:55:07
Inputs must have the same size.matlab代码错误for i =1:19;dizhi='C:\Users\zty\Desktop\2013\B\附件1\';wenjianming='0' & i & '.bmp';x=imread(dizhi & wenjianming);xi=im2double(x);endError using & Inputs must have the same size.
Inputs must have the same size.matlab代码错误
for i =1:19;
dizhi='C:\Users\zty\Desktop\2013\B\附件1\';
wenjianming='0' & i & '.bmp';
x=imread(dizhi & wenjianming);
xi=im2double(x);
end
Error using &
Inputs must have the same size.
Inputs must have the same size.matlab代码错误for i =1:19;dizhi='C:\Users\zty\Desktop\2013\B\附件1\';wenjianming='0' & i & '.bmp';x=imread(dizhi & wenjianming);xi=im2double(x);endError using & Inputs must have the same size.
wenjianming=['0',num2str(i),'.bmp'];
x=imread([dizhi,wenjianming]);
应该这样用方括号和逗号连接字符串.