Hello, I have a matrix of order 768 X 256. How can I downsample every alternate column. So that, every second column in the matrix is downsampled. So that new matrix will have order 768 X 128?. Kindly help me out.

1 回表示 (過去 30 日間)
If A is of order 768 X 256. I need to downsample every alternate column, i.e. every 2nd column is downsampled. So that new matrix will have order 768 X 128. Kindly help me in this issue.
Thanks, Sai..

採用された回答

Rik
Rik 2018 年 10 月 3 日
This works the same, but in reverse from your other question:
data=rand(768,256);%generate data for example
data(:,1:2:end)=[];

その他の回答 (1 件)

Matt J
Matt J 2018 年 10 月 3 日
編集済み: Matt J 2018 年 10 月 3 日
Another way to reduce the data would be by doing 1x2 binning, e.g., using sepblockfun (Download)
data= sepblockfun(data,[1,2],'mean');

カテゴリ

Help Center および File ExchangeMultirate Signal Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by