Changing the quantization range while using 'uencode'
1 次查看(过去 30 天)
显示 更早的评论
While using 'uencode', the quantization takes place in steps of 1 starting from 0 (y-axis). How can I change this to, let's say, -10 to 10?
0 个评论
采纳的回答
Ameer Hamza
2020-9-12
Use rescale()
x = rand(1, 10);
y = uencode(x, 3);
y_new = rescale(y, -10, 10);
0 个评论
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!