Saturday, 15 March 2014

changing default resizing property of subplot function of matlab -


I would like to show three different statistics using subplot, one of them is original and the other is upper with the factor of x Has been placed in the part. But the subplot has changed the shape to fit the image of the heat-shaped and it is shown as the original, although its size is larger than the original one x times how can I change my code to show in real size This is my job:

  function zp_over = zp_oversample (zp, fs, n, f)% zp is my 2d image, fs is frequency sample, dimensions of n image, use for f Sampling factor% scaling over-sampling and plu K x = round (FS / F); Zp_ov = zero (n * x); Zp_ov (1: x: end, 1: x: end) = district council; Figure, subplot (121), imshov (zp_ov); Title (on 'sample'); Subplot (122); Imshow (district council); % Original Image Title ('Basic'); To use the 'Position' option of the "Subplot" function, you must use  

For specifying the location and size of subdivisions manually,

for example:

  figure; Subplot ('position', [0.35, 0.25, 0.5, 0.6]); % [Left, bottom, width, height] imshov (zp_ov); Subplot ('position', [0.35, 0.15, 0.5, 0.6]); Imshow (district council);  

Of course, the exact values ​​of coordinates depend on the size of the images.


No comments:

Post a Comment