Azzera filtri
Azzera filtri

plot figure stem subplot

1 visualizzazione (ultimi 30 giorni)
ahmad ramadan
ahmad ramadan il 22 Ott 2018
Commentato: madhan ravi il 22 Ott 2018
when run my code matlab give me error why?
n1 = 0:50; f1 = 0.05; phase1 = 0; peak = 1.0; A1 = 1.0; arg1 = 2*pi*f1*n1 + phase1; u=255; x1 = A1*sawtooth(arg,peak); Xc1 = (log(1 + 255.*abs(x1)) ./ log(1+u)) .* sign(x1)
L = 2^4; q = 2/L; y1 = q.*round(Xc/q);
exp1 = ((-1 + (1+u).^abs(Y1)) ./ u);
stem(n,exp1)

Risposta accettata

madhan ravi
madhan ravi il 22 Ott 2018
n1 = 0:50;
f1 = 0.05;
phase1 = 0;
peak = 1.0;
A1 = 1.0;
arg1 = 2*pi.*f1.*n1 + phase1;
u=255;
x1 = A1.*sawtooth(arg1,peak);
Xc1 = (log(1 + 255.*abs(x1)) ./ log(1+u)) .* sign(x1)
L = 2.^4;
q = 2./L;
y1 = q.*round(Xc/q);
exp1 = ((-1 + (1+u).^abs(y1)) ./ u);
stem(n1,exp1(1:numel(n1)))

Più risposte (0)

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by