how to perform FFT on multivalued bit string?
1 回表示 (過去 30 日間)
古いコメントを表示
hi,
i have a bit string of size 560*1 of values 0 and 1 and some cells contains both 0 and 1 values.. now, i need to apply FFT on this bit string.. to do so, first i need to convert cell values to double values by making use of Cell2mat function (bcz FFT function can be applied on double values only).. so, i used cell2mat function and i applied fft on it... i got wrong results... i.e., if a cell in bit string contains [0,1] ,then after using cell2mat function the values 0 and 1 are being splitted and size of bit string is being increased...
code for binary string :
new_len = 576;
old_len = length(a);
mapped_index = 1 + mod((1:old_len) - 1, new_len);
b = accumarray( mapped_index(:), a(:), [new_len 1], @(L) {unique(L.')} ) .';
B1=cell2mat(b);
b2=B1';
i got error: undefined function fft for input arguments of type cell...
Can anyone help me with this..
0 件のコメント
回答 (1 件)
Walter Roberson
2017 年 3 月 27 日
"Can anyone help me with this.."
No. There is no defined meaning for taking the fft of a many-to-one mapping.
Taking the Discrete Fourier Transform (fft) of a bit-string is questionable itself.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Fourier Analysis and Filtering についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!