Hi, I would like to make the below more succinct.
As
set(findobj(gcf,'type','axes'),'FontName','Calibri','FontSize',11,'FontWeight','Bold', 'LineWidth', 1,'layer','top');grid on
is written several times, I would like to know how to apply properties to all subplots all at once.
figure(1)set(gcf,'position',[500 200 1000 600])subplot(311)stairs(A,B,'markersize',2,'marker','*','linewidth',1)xlabel('Frequency (Hz)'),ylabel('Amplitude')set(findobj(gcf,'type','axes'),'FontName','Calibri','FontSize',11, ...'FontWeight','Bold', 'LineWidth', 1,'layer','top');grid onsubplot(312)stairs(C,D,'markersize',2,'marker','*','linewidth',1)xlabel('Frequency (Hz)'),ylabel('Amplitude')set(findobj(gcf,'type','axes'),'FontName','Calibri','FontSize',11, ...'FontWeight','Bold', 'LineWidth', 1,'layer','top');grid onsubplot(313)plot(E,F,'MarkerSize',1,'LineWidth',1)xlabel('Time [ms]'),ylabel('Amplitude')set(findobj(gcf,'type','axes'),'FontName','Calibri','FontSize',11, ...'FontWeight','Bold', 'LineWidth', 1,'layer','top');grid on
Thank you in advance!
Best Answer