フィルターのクリア

Changing the quantization range while using 'uencode'

1 回表示 (過去 30 日間)
Siddharth Gopujkar
Siddharth Gopujkar 2020 年 9 月 12 日
回答済み: Siddharth Gopujkar 2020 年 9 月 12 日
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?

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 9 月 12 日
Use rescale()
x = rand(1, 10);
y = uencode(x, 3);
y_new = rescale(y, -10, 10);

その他の回答 (1 件)

Siddharth Gopujkar
Siddharth Gopujkar 2020 年 9 月 12 日
Thank you!
The random number generation didn't help, but just using rescale helped!

カテゴリ

Help Center および File ExchangeTiming and presenting 2D and 3D stimuli についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by