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

1 view (last 30 days)
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 Comments

Sign in to comment.

Accepted Answer

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

More Answers (0)

Categories

Find more on Data Type Identification in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!