How to make two images with same dimensions to be same size in matlab

I have two images with same dimensions but with different sizes. I want the bigger image's size to be changed to match the smaller image's size. For example, I have an image A with size 300x400x3 and image B with size 600x800x3. I want to change the size of image B to 300x400x3. Thanks for any help.


Just one-liner as suggested by Andrey -

B = imresize( B,[size(A,1) size(A,2)]);

For accessing more options with resizing, use this resource.

Need Your Help

Is it possible to know the type of return value of a function in Go?


For example, I want to do something like this,

Demand a Vagrant plugin within the Vagrantfile?


Supposed execution of a Vagrantfile requires a specific Vagrant plugin to be installed. So, basically what you need to do is