for i=1:209
switch i
case i<=10
strx1=[str1 num2str(i-1) ‘.bmp’];
Atot=imread(strx1);
case i>10&&i<=100
strx2=[str2 num2str(i-1) ‘.bmp’];
Atot=imread(strx2);
otherwise
strx3=[str3 num2str(i-1) ‘.bmp’];
Atot=imread(strx3);
end
end

这个是运行结果,求助大佬帮看错在哪里了
Matlab中关于switch语句的问题
最新推荐文章于 2025-05-18 11:23:09 发布
博客展示了一段Matlab代码,代码使用for循环和switch语句读取不同命名规则的.bmp图片文件。博主给出运行结果后,向大佬求助代码错误所在。
1453

被折叠的 条评论
为什么被折叠?



