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!