MATLAB: Common Y label for multiple subplots in MATLAB!!!

subplot

Can anyone please help, how to put common y label for multiple subplots in MATLAB figures?

Best Answer

figure;
h1=subplot(2,1,1);
h2=subplot(2,1,2);
p1=get(h1,'position');
p2=get(h2,'position');
height=p1(2)+p1(4)-p2(2);
h3=axes('position',[p2(1) p2(2) p2(3) height],'visible','off');
h_label=ylabel('test','visible','on');
Related Question