Procházet zdrojové kódy

made copy for RLC circuit

publish
Wouter Horlings před 8 roky
rodič
revize
3056d77004
2 změnil soubory, kde provedl 17 přidání a 0 odebrání
  1. binární
      OOequipment/RLC_TransferFunction.mlx
  2. +17
    -0
      OOequipment/subfiles/RLC_TransferFunction_script.m

binární
OOequipment/RLC_TransferFunction.mlx Zobrazit soubor


+ 17
- 0
OOequipment/subfiles/RLC_TransferFunction_script.m Zobrazit soubor

@@ -0,0 +1,17 @@
%% Run the measurements
data = transferFunction(oscilloscope,functiongenerator,f_start,f_stop,n_steps,amplitude);
S = asymptote(S_smaller,S_larger,f,Fc);
figure;
subplot(2,1,1)
semilogx(data.frequency,data.magnitude,f,A,f,S)
ylabel('Magnitude [dB]','Fontsize',10);
xlabel('Frequency [Hz]','Fontsize',10);
legend('Measurement','Theory','Asymptote');
grid on
title('RC-circuit Bodeplot')
subplot(2,1,2);
semilogx(data.frequency,data.phase,f,P)
ylabel('Phase [rad]','Fontsize',10);
xlabel('Frequency [Hz]','Fontsize',10);
legend('Measurement','Theory');
grid on

Načítá se…
Zrušit
Uložit