How to delete rows from an array?
3 次查看(过去 30 天)
显示 更早的评论
Given an array of double of size 929x1, I want to obtain a reduced double array with the first 549 lines of the previous one. In short, given a double-sized array of 929x1, we want to eliminate the last 380 lines. How can I do??
0 个评论
采纳的回答
Arvind Sathyanarayanan
2019-3-1
编辑:Arvind Sathyanarayanan
2019-3-1
Set the rows you want to delete to null. Example:
x(550:end,:)=[];
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!