필터 지우기
필터 지우기

mu law compressor function

조회 수: 1 (최근 30일)
ahmad ramadan
ahmad ramadan 2018년 10월 22일
편집: madhan ravi 2018년 10월 22일
i have sawtooth function when i compress the function using this function
the matlab give me error
my code T = 10*(1/50); Fs = 10000; dt = 1/Fs; t = 0:dt:T-dt; x4 = sawtooth(2*pi*50*t);
Xc = (log(1 + 255*abs(x4)) / log(1+u)) * sign(x4);
  댓글 수: 2
ahmad ramadan
ahmad ramadan 2018년 10월 22일
u==255
madhan ravi
madhan ravi 2018년 10월 22일
see the answer below

댓글을 달려면 로그인하십시오.

채택된 답변

madhan ravi
madhan ravi 2018년 10월 22일
편집: madhan ravi 2018년 10월 22일
T = 10*(1/50);
Fs = 10000;
dt = 1/Fs;
t = 0:dt:T-dt;
x4 = sawtooth(2*pi*50*t);
u=255
Xc = (log(1 + 255.*abs(x4)) ./ log(1+u)) .* sign(x4)

추가 답변 (1개)

ahmad ramadan
ahmad ramadan 2018년 10월 22일
may explain what you did
thaanx lot
  댓글 수: 1
madhan ravi
madhan ravi 2018년 10월 22일
편집: madhan ravi 2018년 10월 22일
Anytime ;) I used dot in front of multiplication and division that's it which is know as element wise operation

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Low-Level File I/O에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by