Advertisement
sunu

Octave half wave avg

Oct 11th, 2016
132
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. clc;
  2. warning("off","all")
  3. syms x t Vp
  4. y1=(1/(2*pi))*int(1*sin(x),0,pi);
  5. y2=(1/(2*pi))*int(Vp*sin(x),0,pi);
  6. y3=(Vp/(2*pi))*int(1*sin(x),0,pi);
  7. double(y1);
  8. y4=double(y1)*sqrt(2);
  9. disp(y4);
  10.  
  11. y5=(1/(1*pi))*int(sin(x),0,pi);
  12. double(y5);
  13.  
  14. y6=sqrt((1/(2*pi))*int((sin(x))^2,0,pi));
  15. double(y6)
Advertisement
RAW Paste Data Copied
Advertisement