How to use str2num in this problem? (problem is in description)

1 visualizzazione (ultimi 30 giorni)
I have a Bit_str cell of size 1*2700. I am doing this:
vall = bit_str{1,1};
BS = str2double(vall);
Hie = fft(BS);
the output i am getting for Hie and BS is 'Inf'. where I am doing wrong. Please tell me.
  5 Commenti
KSSV
KSSV il 16 Giu 2017
I think you are dealing with binary numbers.

Accedi per commentare.

Risposta accettata

Andrei Bobrov
Andrei Bobrov il 16 Giu 2017
BS = bit_str{1}-'0'
Hie = fft(BS);

Più risposte (0)

Categorie

Scopri di più su Data Type Identification in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by