mu law compressor function
조회 수: 1 (최근 30일)
이전 댓글 표시
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);
채택된 답변
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)
댓글 수: 0
추가 답변 (1개)
ahmad ramadan
2018년 10월 22일
댓글 수: 1
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 Center 및 File 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!