MATLAB: How to add figure title and axes labels for multiple plots

multiplots

I have plotted multiple plots in a single figure in matlab. Now i want to add figure title and axes (X, Y) labels. How can i do that.
I have tried with the following codes, however the problem is that they (tile and labels) only appears at the last plot instead of showing for the whole figure. Any idea or codes please!
if true
Input = xlsread('Data.xlsx');
for ii = 1:29
subplot(6,5,ii)
scatter(Input(:,1),Input(:,ii+1));
hold on
end
title('Multiple scatter plot of all simulated reff values from various input combinations');
xlabel('association');
ylabel('Effective radius in micrometer');
end

Best Answer

Whatever you want to have on every axis, just move it inside the for loop, like so
% if true % what is the point of this?
Input = xlsread('Data.xlsx');
for ii = 1:29
subplot(6,5,ii)
scatter(Input(:,1),Input(:,ii+1));
% hold on % you don't need to hold on
title('Multiple scatter plot of all simulated reff values from various input combinations');
xlabel('association');
ylabel('Effective radius in micrometer');
end
% end
Related Question