Просмотр исходного кода

made copy for RLC circuit

publish
Wouter Horlings 8 лет назад
Родитель
Сommit
3056d77004
2 измененных файлов: 17 добавлений и 0 удалений
  1. Двоичные данные
      OOequipment/RLC_TransferFunction.mlx
  2. +17
    -0
      OOequipment/subfiles/RLC_TransferFunction_script.m

Двоичные данные
OOequipment/RLC_TransferFunction.mlx Просмотреть файл


+ 17
- 0
OOequipment/subfiles/RLC_TransferFunction_script.m Просмотреть файл

@@ -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

Загрузка…
Отмена
Сохранить