imgstr无法识别strcat的输出字符串.
homedir = 'C:\Users\...\images\';
for img = {'01.bmp', '02.bmp', '03.bmp'}
imgstr = strcat(homedir, img)
I = imread(imgstr);
end;
Run Code Online (Sandbox Code Playgroud)
输出:
imgstr = 'C:\Users...\images\01.bmp'
Error using imread>parse_inputs (line 477)
The filename or url argument must be a string.
Run Code Online (Sandbox Code Playgroud)
strcat应该返回一个字符串,而不是一个char数组,因为我的输入是字符串.不应该吗?