mu law compressor function
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
ahmad ramadan
le 22 Oct 2018
Modifié(e) : madhan ravi
le 22 Oct 2018
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 commentaires
Réponse acceptée
madhan ravi
le 22 Oct 2018
Modifié(e) : madhan ravi
le 22 Oct 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 commentaires
Plus de réponses (1)
ahmad ramadan
le 22 Oct 2018
1 commentaire
madhan ravi
le 22 Oct 2018
Modifié(e) : madhan ravi
le 22 Oct 2018
Anytime ;) I used dot in front of multiplication and division that's it which is know as element wise operation
Voir également
Catégories
En savoir plus sur Discrete Fourier and Cosine Transforms dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!