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 comentarios

ahmad ramadan
ahmad ramadan el 22 de Oct. de 2018
u==255
madhan ravi
madhan ravi el 22 de Oct. de 2018
see the answer below

Iniciar sesión para comentar.

 Respuesta aceptada

madhan ravi
madhan ravi el 22 de Oct. de 2018
Editada: madhan ravi el 22 de Oct. de 2018

0 votos

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)

Más respuestas (1)

ahmad ramadan
ahmad ramadan el 22 de Oct. de 2018

0 votos

may explain what you did
thaanx lot

1 comentario

madhan ravi
madhan ravi el 22 de Oct. de 2018
Editada: madhan ravi el 22 de Oct. de 2018
Anytime ;) I used dot in front of multiplication and division that's it which is know as element wise operation

Iniciar sesión para comentar.

Categorías

Más información sobre Physics en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 22 de Oct. de 2018

Editada:

el 22 de Oct. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by