Shortening Matrix to specific number

2 次查看(过去 30 天)
I have a matrix 139776 x 1. I need to shorten the matrix to 138240 x 1.
How can I do this?
Also, Is there a way to shorten the matrix to the nearest factor of Y.
Thanks

采纳的回答

Walter Roberson
Walter Roberson 2019-11-22
YourMatrix(138240+1:end) = [];

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by