how can i truncte a matrix?
2 views (last 30 days)
Show older comments
how can i truncate matrix with 51*500 to 51*71?
0 Comments
Answers (2)
Tina
on 14 Nov 2021
if you have 51*500 try doing
a=zeros(51,500)
b=a(:,1:71)
and if you have 500*51
a=zeros(500,51)
b=a(1:71,:)
0 Comments
See Also
Categories
Find more on Data Types 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!