Mapping
1 回表示 (過去 30 日間)
古いコメントを表示
Hi all, I need to map a bulk of data whose range is [-3 -1 1 3] to a binary data [00 01 10 11]. Is there any matlab inbuilt function which performs this operation.
Thanks in advance.. Sowmya..
0 件のコメント
回答 (1 件)
Andrei Bobrov
2012 年 4 月 12 日
bidata = [0 0; 0 1; 1 0; 1 1]
out = bidata*[4;2] - 3
ADD inverse problem
bidata = floor(rem(bsxfun(@rdivide,(data(:) + 3),[4 2]),2));
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!