MATLAB: PLease help me to understand tight subplot fuction

image processingtight subplot

[ha, pos] = tight_subplot(3,2,[.01 .03],[.1 .01],[.01 .01]) for ii = 1:6; axes(ha(ii)); plot(randn(10,ii)); end set(ha(1:4),'XTickLabel',''); set(ha,'YTickLabel','')
Hello. I am a new learner. I need to concise my subplot. Please help me with my code attached following. I don't understand how can I use the above function with my code. Please help me.
% Display the original Image image = imread('boardday.jpg'); % Read Colour Image and convert it to a grey level Image myimage = rgb2gray(image); figure; subplot(2,1,1); imshow(image); title ({'Original';' Image'}); subplot(2,1,2); imshow(myimage);title({'Gray Scale';'Image'});

Best Answer

First, type
help tight_subplot
Then, when you understand the syntax: create the axes using the function and change subplot(...,ax) to axes(ha(ax)), where ax is the subplot you want to make the current axes