I have 2304x1024 matrix. I assume that each 3 rows of this matrix describe an image.(so I have 768 images and each image size = 3x1024 ). And want to plot it.
Let your 2304x1024 matrix be data. I'm assuming that you have to obtain these images successively in a single plot. If that is not the case, please specify how do you actually want to plot it.
Hello Deeds, I have just tried your code and get a image but did not understand what the aim of your code is. I attached that image.
I just want to get 768 images in a single figure. And every image size should be 3x1024. (These images can be grayscale format.) My whole data size 2304x1024.
I think your code plots every single row for all columns. But Suphadeep Koley's code gives me single image 3x1024 i think. I need 768 images in a single figure (using subplot maybe ?), not just one.
Yes, @Subhadeep Koley 's code extracts the first image from the data matrix and my code successively plots each image in a plot. It will plot an image and then replace it with the next image and so on. That means finally, you'll have the 768th image.
Do you want all the 768 images in a single plot ? Then the question arises, in which order do you want them? It would be good if you give a better description of what you want through a sample image.
Sorry for the late reply. I hope this can resolve your issue.
figure
position =1;
for ind=1:768
start= (ind-1)*3+1;
stop=ind*3;
data = wholedata(start:stop,:);
subplot(1,768,position);
imagesc(data);
hold on;
position = position+1;
end
Further, you can even use imshow and subplot for your functionality. I have never used it personally, so I'll just share the link where you can find more information on its impementation. Link!
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
0 Comments
Sign in to comment.