Figure looks small and zoomed out

18 views (last 30 days)
Adam Tattersall
Adam Tattersall on 16 Mar 2017
Answered: Image Analyst on 17 Mar 2017
Doing some work with matrices and when showing the matrix as an image using imshow on a figure it looks small and zoomed out.
Code:
close all
clear all
clc
Z = zeros(9,20);
Z(2, :) = 8;
Z(:, 4) = 5;
Z(end-3:end, end-3:end) = 3;
Z(8, linspace(2, end, 10)) = 4;
figure
imshow(Z)
This is what my figure looks like:
How do I make the figure larger and zoomed in than it currently is. Also if possible, to make it default for matlab.
If this helps the resolution of my laptop is 3840 x 2160

Answers (2)

Les Beckham
Les Beckham on 17 Mar 2017
You have defined an image that is only 9x20 pixels. How big would you expect that to be (especially on your high resolution display)?
  1 Comment
Adam Tattersall
Adam Tattersall on 17 Mar 2017
Thanks for the answer, I've realised the mistake I have made. I need to use imagesc instead of imshow

Sign in to comment.


Image Analyst
Image Analyst on 17 Mar 2017
Try
imshow(Z, 'InitialMagnification', 1600);

Categories

Find more on Display Image in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!