mu law expander error

1 Ansicht (letzte 30 Tage)
ahmad ramadan
ahmad ramadan am 22 Okt. 2018
Bearbeitet: madhan ravi am 22 Okt. 2018
i have sawtooth function when i expanded the function using this function
i get error
my code
T = 10*(1/50);
Fs = 10000;
dt = 1/Fs;
t = 0:dt:T-dt;
x4 = sawtooth(2*pi*50*t);
u=255
expander = ((-1 + (1+u)^abs(Y)) ./ u);
  2 Kommentare
ahmad ramadan
ahmad ramadan am 22 Okt. 2018
u==255
madhan ravi
madhan ravi am 22 Okt. 2018
see my answer below

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

madhan ravi
madhan ravi am 22 Okt. 2018
T = 10*(1/50);
Fs = 10000;
dt = 1/Fs;
t = 0:dt:T-dt;
x4 = sawtooth(2*pi*50*t);
u=255
expander = ((-1 + (1+u).^abs(x4)) ./ u);
  1 Kommentar
madhan ravi
madhan ravi am 22 Okt. 2018
Bearbeitet: madhan ravi am 22 Okt. 2018
you forgot to put x4 inside abs() , if its the answer for your question please accept the answer so people know the question is solve else let know

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB Coder finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by