Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

25 строки
645B

  1. %% Run the measurements
  2. data = transferFunction(oscilloscope,functiongenerator,f_start,f_stop,n_steps,amplitude);
  3. %% plot the data
  4. S = asymptote(S_smaller,S_larger,f,Fc);
  5. P = mod(P,pi);
  6. figure;
  7. subplot(2,1,1)
  8. semilogx(data.frequency,data.magnitude)
  9. hold on
  10. semilogx(f,A,f,S)
  11. hold off
  12. ylabel('Magnitude [dB]','Fontsize',10);
  13. xlabel('Frequency [Hz]','Fontsize',10);
  14. legend('Measurement','Theory','Asymptote');
  15. grid on
  16. title('RLC-circuit Bodeplot')
  17. subplot(2,1,2);
  18. semilogx(data.frequency,data.phase)
  19. hold on
  20. semilogx(f,P)
  21. hold off
  22. ylabel('Phase [rad]','Fontsize',10);
  23. xlabel('Frequency [Hz]','Fontsize',10);
  24. legend('Measurement','Theory');
  25. grid on