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

1 回表示 (過去 30 日間)
Roshni gupta
Roshni gupta 2017 年 6 月 16 日
コメント済み: Roshni gupta 2017 年 6 月 16 日
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 件のコメント
KSSV
KSSV 2017 年 6 月 16 日
I think you are dealing with binary numbers.
Roshni gupta
Roshni gupta 2017 年 6 月 16 日
yeah

サインインしてコメントする。

採用された回答

Andrei Bobrov
Andrei Bobrov 2017 年 6 月 16 日
BS = bit_str{1}-'0'
Hie = fft(BS);
  1 件のコメント
Roshni gupta
Roshni gupta 2017 年 6 月 16 日
Thank you so so much. This worked :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Identification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by