How to reshape in 3D a downsampled matrix
4 views (last 30 days)
Show older comments
Tahariet Sharon
on 24 Apr 2020
Commented: Turlough Hughes
on 24 Apr 2020
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 Comments
Accepted Answer
Turlough Hughes
on 24 Apr 2020
Easiest thing to do would be just this:
newData = data(1:factor:end,1:factor:end,1:factor:end);
1 Comment
More Answers (0)
See Also
Categories
Find more on Multirate Signal Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!