How i remove the data >30 and <25 ? and how i make a pattern to remove them in any futuer data ?

4 个评论

After remove, what would be size of the futuer data? Is it same as originals?
Same the orgnial size, in this plot 100x20
When you remove the element from the matrix, what remains in that location?
100X15
x=randi([25 30]),100,15);
y=randi([20 50]),100,5);
w=[x y];
plot(w)

请先登录,再进行评论。

 采纳的回答

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 个)

类别

帮助中心File Exchange 中查找有关 Logical 的更多信息

产品

标签

Community Treasure Hunt

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

Start Hunting!

Translated by