function bodePlot(magnitude,phase,frequency) %UNTITLED Summary of this function goes here % Detailed explanation goes here figure; subplot(2,1,1) semilogx(frequency,magnitude) ylabel('Magnitude [dB]','Fontsize',10); xlabel('Frequency [Hz]','Fontsize',10); grid on title('Bodeplot') ax = subplot(2,1,2); semilogx(frequency,phase) ylabel('Phase [rad]','Fontsize',10); xlabel('Frequency [Hz]','Fontsize',10); grid on end