stairs function
Ältere Kommentare anzeigen
Hello,
I want quantize a sine signal to 10 and 4 levels of quantization. I want to use 'stairs', but I find it quite confusing to define it correctly.
this is the code so far:
Fm = 1000;
t = 0:1/10e4:10/Fm;
f=sin(2*pi*Fm.*t);
stairs(t,f);
Best Regards
Antworten (1)
RNTL
am 12 Apr. 2012
0 Stimmen
i think you should try quantiz.
Kategorien
Mehr zu Quantizers finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!