SHARE
TWEET

Untitled

a guest Nov 14th, 2019 116 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. logs = logspace(0.1,2.301, 15);
  2.  
  3. magnitudes = [];
  4. phases = [];
  5. for i = 1:15
  6.     data = load('meas' + string(i));
  7.     magnitudes(i) = 20*log10(max(data.simout.signals.values(:,5))/5);
  8.     phases(i) = givepd(data.simout.signals.values(:,5), ...
  9.                        data.simout.signals.values(:,1)) * (180/pi);
  10. end
  11. figure(2)
  12. semilogx(logs,magnitudes);
  13. semilogx(logs,phases);
  14.  
  15. kc = 0.1586;
  16. magnitudes_kc = magnitudes + (20*log10(kc));
  17. semilogx(logs,magnitudes_kc);
  18. semilogx(logs,phases);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top