Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不能imshow()在一个项目中使用多个,我的代码只能看到最后一个imshow()。
imshow()
n=10; a = magic(n); b=a/(n^2); imshow(a) imshow(b)
我的问题是什么?
您应该将imshow它们放在单独的数字或子图中:
imshow
利用
figure;imshow(a); figure;imshow(b);
或者
figure; subplot(1,2,1);imshow(a); subplot(1,2,2);imshow(b);