Advertisement
Yuri-Cristhian

Untitled

Dec 17th, 2020
2,027
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scilab 0.30 KB | None | 0 0
  1. clear,clc;
  2. Fa = 50000;
  3. Ta = 1/Fa;
  4. t = 0:1/50000:4.32;
  5. load somHino.dat
  6. V = struct('time', t', 'values', som1');
  7. v = [0 0.25 0.5 0.75 1]; mu = 255;
  8. m = (10.^(v*log10(1 + mu)) - 1)/mu;
  9. R1 = 100*(m(2) - m(1));
  10. R2 = 100*(m(3) - m(2));
  11. R3 = 100*(m(4) - m(3));
  12. R4 = 100*(m(5) - m(4));
  13.  
  14. //sound(som1,Fa);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement