How to reshape in 3D a downsampled matrix
2 ビュー (過去 30 日間)
古いコメントを表示
Tahariet Sharon
2020 年 4 月 24 日
コメント済み: Turlough Hughes
2020 年 4 月 24 日
Let's say I have this data:
factor=2;
data=zeros(40,20,74);
data(1:factor:end,1:factor:end,1:factor:end)=1;
Now, I would like to get a new "data" matrix just retaining the values "ones".
Thanks in advance,
TS
0 件のコメント
採用された回答
Turlough Hughes
2020 年 4 月 24 日
Easiest thing to do would be just this:
newData = data(1:factor:end,1:factor:end,1:factor:end);
1 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Multirate Signal Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!