separate regions of image in subplots
3 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/330437/image.jpeg)
回答(1 个)
Image Analyst
2020-7-11
Before that line, put this and see what it puts out to the command window:
whos P
[rows, columns, numberOfColorChannels] = size(P)
It looks like it thinks your P is not an RGB image. What is it? pso() is not a built-in function so I don't know what it returns. What does pso() return as the first argument?
5 个评论
Image Analyst
2020-7-11
OK, so go ahead (no question was asked - just an announcement). Write code to create those images, and call subplot(2, 3, n) and display the proper image in the proper location.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!