plot figure stem subplot
15 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
ahmad ramadan
am 22 Okt. 2018
Kommentiert: madhan ravi
am 22 Okt. 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)
0 Kommentare
Akzeptierte Antwort
madhan ravi
am 22 Okt. 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 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots 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!