Test matlab
Test intro text. Nice code below:
clearvars;close all;clc Fs = 48000; %T = 0.005; f0 = 1000; P_0_rms = 1; P_ref_rms = 20*10^(-6); T = 3*(1/f0); Ts = 1/Fs; tVec = [0:Ts:T-Ts]; x_0 = sqrt(2)*sin(2*pi*f0*tVec); x_ref = P_ref_rms*sqrt(2)*sin(2*pi*f0*tVec); figfont = 16; figline = 4; fig1 = figure(1); subplot(1,2,1) hold on grid on plot(1000*tVec, (10^6)*x_ref,'linewidth',figline) plot(1000*tVec,P_ref_rms*(10^6)*ones(length(tVec),1),'linewidth',figline,'LineStyle','--') xlabel('Time (ms)','FontSize',figfont) ylabel('Amplitude (\muPa, micro-Pascals)','FontSize',figfont) title({['1 kHz sinusoidal acoustic pressure signal']; ['Level: 20 \muPa (RMS); L_p = 0 dB (SPL)']},'FontSize',figfont) ylim([-30,30]) set(gca,'FontSize',figfont-2,'YTick',[-30:5:30]) subplot(1,2,2) hold on grid on plot(1000*tVec, x_0,'linewidth',figline) plot(1000*tVec,ones(length(tVec),1),'linewidth',figline,'LineStyle','--') xlabel('Time (ms)','FontSize',figfont) ylabel('Amplitude (Pa, Pascals)','FontSize',figfont) title({['1 kHz sinusoidal acoustic pressure signal']; ['Level: 1 Pa (RMS); L_p = 94 dB (SPL)']},'FontSize',figfont) ylim([-1.6,1.6]) set(gca,'FontSize',figfont-2,'YTick',[-1.6:0.2:1.6]) set(fig1,'Position',[223.0000 224 1100 474.1350])
And some footer-type text