plot figure stem subplot

2 vues (au cours des 30 derniers jours)
ahmad ramadan
ahmad ramadan le 22 Oct 2018
Commenté : madhan ravi le 22 Oct 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)

Réponse acceptée

madhan ravi
madhan ravi le 22 Oct 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)))
  1 commentaire
madhan ravi
madhan ravi le 22 Oct 2018
note MATLAB is case sensitive

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Log Plots dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by