Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. clear all;
  2. clc;
  3. close all;
  4. syms x;
  5. order = 15.74;
  6.  
  7. den_cmplx = i^order;
  8.  
  9. den_r = real(den_cmplx); %real part
  10. den_c = imag(den_cmplx); %imaginary part
  11.  
  12.  
  13. %To find the magnitude of this transferfunction, we need to substitute s =
  14. %jw and multiply its complex conjugate with it.
  15. t1 = 1/(1 + den_r*x^order + den_c*i*x^order); %just substitution of s = jw
  16. t2 = 1/(1 + den_r*x^order - den_c*i*x^order); % 1/(complex conjugate of denominator of t1)
  17. absolute = t1*t2; %Multiply t1 and t2 to get absolute function
  18. pretty(absolute)
  19. absolute
  20.  
  21. y=1./((x.^(787/50)*(4133199390247927/4503599627370496 - (7154380369095101*i)/18014398509481984) + 1).*(x.^(787/50)*(4133199390247927/4503599627370496 + (7154380369095101*i)/18014398509481984) + 1)); %Same function obtained from the above code evaluated for matrix x.
  22. loglog(x,y,'-s')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement