How can convert vector aa size 1x262144 to matrix 256x256

5 ビュー (過去 30 日間)
nora elfiky
nora elfiky 2016 年 12 月 11 日
コメント済み: honey 2020 年 3 月 16 日
hi every one i'm new her i need help
size of aa 1x262144 i want convert to matrix 256x256
  4 件のコメント
Walter Roberson
Walter Roberson 2020 年 1 月 6 日
In your posted code, fs would be the sampling frequency. The sampled values would be in y. You would proceed to fft(y) and then analyze the results along the lines I mentioned.
Note: your y might have multiple channels, which will show up as separate columns. Be careful, as in theory the different channels can have different peak frequencies.



Isabella Osetinsky-Tzidaki
Isabella Osetinsky-Tzidaki 2016 年 12 月 11 日
編集済み: Isabella Osetinsky-Tzidaki 2016 年 12 月 11 日
% you will not convert (262144 is 4 times 256*256 and not equal to it)
% but complete 4 matrices out of your "aa" vector
% and you will get a "M" array:
M=nan(256,256,4); % pre-allocate
for i=1:4
  37 件のコメント
honey 2020 年 3 月 16 日
thank you


その他の回答 (1 件)

the cyclist
the cyclist 2016 年 12 月 11 日
Use the reshape command.


Community Treasure Hunt

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

Start Hunting!

Translated by