From: Nils Date: Fri, 12 Jul 2024 20:10:05 +0000 (+0200) Subject: changed values and added RIAA curve to plot X-Git-Url: https://gitweb.forssennils.se/?a=commitdiff_plain;h=14ca4e70943300c3151d5fbafa3ae5e87e0161bb;p=phono_preamp.git changed values and added RIAA curve to plot --- diff --git a/matlab/calculations.m b/matlab/calculations.m index b138286..a072e31 100644 --- a/matlab/calculations.m +++ b/matlab/calculations.m @@ -2,8 +2,8 @@ s = tf('s'); Z_R4 = 180000; Z_R3 = 10000; Z_R5 = 4700; -Z_R6 = 16000; -Z_R7 = 330; +Z_R6 = 100000; +Z_R7 = 2200; Z_R13 = 750; Z_R14 = 100000; @@ -22,11 +22,16 @@ H2 = ((1 / (Z_R7 + Z_C3)) + (1 / Z_R6)) * Z_R6; H3 = (1 / (Z_R13 * Z_C8)) / (s + (1 / (Z_R13 * Z_C8))); H4 = (s * Z_R14 * Z_C9 / (1 + s * Z_R14 * Z_C9)); -H_tot = H1 * H2 * H3 * H4; +H_tot = (1 / 2) * H1 * H2 * H3 * H4; + +H_RIAA = 10 * ((s / (2 * pi * 500)) + 1) / (((s / (2 * pi * 50)) + 1)*((s / (2 * pi * 2122)) + 1)); + +H_RIAA_amp = 100 * H_RIAA; p = bodeoptions('cstprefs'); p.FreqUnits = 'Hz'; p.PhaseVisible = 'off'; -p.XLim = {[10,30000]}; +p.XLim = {[20,20000]}; + -bodeplot(H_tot,p) \ No newline at end of file +bodeplot(H_tot, H_RIAA_amp,p) \ No newline at end of file