How can I subplot images close to eachother using subplot?

How can I subplot images close to eachother using subplot? Now I have plotted 20 images to same figure and space between images is too big.

More Answers (1)

Copy subplot.m and edit line 128 (or there abouts)
inset = [.02, .018, .004, .01]; % [left bottom right top]
to be values more to your liking. Either save the new file as subplot.m (which will affect all subplots) or something new (e.g., tightsubplot) and use that when you want tight subplots.

Asked:

on 28 Feb 2013

Community Treasure Hunt

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

Start Hunting!