Effacer les filtres
Effacer les filtres

Mapping

2 vues (au cours des 30 derniers jours)
DSP Masters
DSP Masters le 12 Avr 2012
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..

Réponses (1)

Andrei Bobrov
Andrei Bobrov le 12 Avr 2012
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));
  1 commentaire
DSP Masters
DSP Masters le 12 Avr 2012
Thanks, but How can I map for the data size [512,1]..?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by