You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 line
423B

  1. function bodePlot(magnitude,phase,frequency)
  2. %UNTITLED Summary of this function goes here
  3. % Detailed explanation goes here
  4. figure;
  5. subplot(2,1,1)
  6. semilogx(frequency,magnitude)
  7. ylabel('Magnitude [dB]','Fontsize',10);
  8. xlabel('Frequency [Hz]','Fontsize',10);
  9. grid on
  10. title('Bodeplot')
  11. ax = subplot(2,1,2);
  12. semilogx(frequency,phase)
  13. ylabel('Phase [rad]','Fontsize',10);
  14. xlabel('Frequency [Hz]','Fontsize',10);
  15. grid on
  16. end