How to reduce an existing matrix
Show older comments
I would like to reduce an existing matrix (1885x1885) to (188x188), essentially discarding the last 5 rows and columns.
How would I code this. Thanks in advance.
1 Comment
Azzi Abdelmalek
on 4 Aug 2013
What do you mean by reduce? Please give a short example
Accepted Answer
More Answers (3)
Sausan Khomusi
on 4 Aug 2013
0 votes
Roger Stafford
on 4 Aug 2013
Edited: Roger Stafford
on 4 Aug 2013
M = M(10:10:end,10:10:end);
Cedric
on 4 Aug 2013
buffer = M(:,1:10:end) ;
M_reduced = buffer(1:10:end,:) ;
1 Comment
Sausan Khomusi
on 4 Aug 2013
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!