deleting element in one dimensional array
显示 更早的评论
hi i have an one dimensional array of n elements and i want to delete only even elements in the array , how can i do this??
回答(1 个)
A=A(1:2:end);
类别
在 帮助中心 和 File Exchange 中查找有关 Image Arithmetic 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!