Advertisement
sunu

Scilab rms 201610 001

Oct 11th, 2016
166
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function Arms=rms(Ain,divr)
  2.     x=linspace(0,2*%pi,divr)
  3.     y=sin(x)
  4.     Arms=Ain*sqrt(mean(y.^2))
  5. endfunction
Advertisement
RAW Paste Data Copied
Advertisement