mu law compressor function
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
ahmad ramadan
il 22 Ott 2018
Modificato: madhan ravi
il 22 Ott 2018
i have sawtooth function when i compress the function using this function
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/192257/image.png)
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 Commenti
Risposta accettata
madhan ravi
il 22 Ott 2018
Modificato: madhan ravi
il 22 Ott 2018
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 Commenti
Più risposte (1)
ahmad ramadan
il 22 Ott 2018
1 Commento
madhan ravi
il 22 Ott 2018
Modificato: madhan ravi
il 22 Ott 2018
Anytime ;) I used dot in front of multiplication and division that's it which is know as element wise operation
Vedere anche
Categorie
Scopri di più su Low-Level File I/O in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!