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.

댓글을 달려면 로그인하십시오.

채택된 답변

Andrei Bobrov
Andrei Bobrov 2017년 6월 16일
BS = bit_str{1}-'0'
Hie = fft(BS);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Identification에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by