I want to get parts of a vector V
with width W
As a result, I want to get M = N*M
, so that if I say M(2,:)
, I will get all the values of V(2*W : 3*W)
.
Any Ideas?
Not entirely sure what you mean, but does
M = reshape(V, W,[]);
come close? Otherwise, try
M = reshape(V, W,[]).';
or
M = reshape(V, [],W);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.