i think you should try quantiz.
stairs function
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Cast and Quantize Data 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!