How do I save a figure with the desired size in pixels?
Show older comments
Hi everyone, I’m stuck with the following question: I want to save an image I created as a bmp-file with a size of 1080x1920 pixels. I just summarize how I crate my image:
- Creating a matrix Zeros(1080,1920)
- Imshow(matrix)
- Write a number on the current image using the text-command
Now, as described above, I would like to save the image as bmp, size 1080x1920 pixels. But it doesn’t work. No matter what I try (print, saveas…), I always get the wrong format. Usually it’s 1200x900. When I tried to set the resolution using the print command, I ended up with 1920x1440, which means it also somehow changed my aspect ratio. Can anyone help me out here?
Accepted Answer
More Answers (0)
Categories
Find more on Images in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!