changing default resizing property of subplot function of matlab -


i show 3 different figure using subplot. 1 of them original 1 , other 1 oversampled factor of x. subplot resize oversampled image fit , shows original though size x times bigger original one. how can change code show them in actual size. function:

function zp_over=zp_oversample(zp,fs,n,f) % zp 2d image, fs sampling frequency, n dimension of image, f used scaling sampling factor     % over-sampling , plot     x=round(fs/f);     zp_ov = zeros(n*x);      zp_ov(1:x:end,1:x:end)=zp;      figure,subplot(121), imshow(zp_ov); title (' on sampled'); subplot(122);imshow(zp); % original image title('original'); 

you'll need use 'position' option of "subplot" function manually specify locations , sizes of subplots.

for example:

figure; subplot('position', [0.35, 0.25, 0.5, 0.6]); % [left, bottom, width, height] imshow(zp_ov);  subplot('position', [0.35, 0.15, 0.5, 0.6]); imshow(zp); 

of course, exact values of coordinates sizes depend on sizes of images.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -