Remove data from matrix
2 次查看(过去 30 天)
显示 更早的评论
How i remove the data >30 and <25 ? and how i make a pattern to remove them in any futuer data ?
4 个评论
KALYAN ACHARJYA
2020-4-6
编辑:KALYAN ACHARJYA
2020-4-6
When you remove the element from the matrix, what remains in that location?
采纳的回答
KSSV
2020-4-6
If A is your array....
You can remove data using:
A(A>30) = [] ;
A(A<25) = [] ;
Or replace them with NaN's, if yu want same size.
A(A>30) = NaN ;
A(A<25) = NaN ;
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multidimensional Arrays 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!