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

댓글 수: 4

KALYAN ACHARJYA
KALYAN ACHARJYA 2020년 4월 6일
After remove, what would be size of the futuer data? Is it same as originals?
Anonymous User
Anonymous User 2020년 4월 6일
Same the orgnial size, in this plot 100x20
KALYAN ACHARJYA
KALYAN ACHARJYA 2020년 4월 6일
편집: KALYAN ACHARJYA 2020년 4월 6일
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)

댓글을 달려면 로그인하십시오.

 채택된 답변

KSSV
KSSV 2020년 4월 6일

1 개 추천

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에 대해 자세히 알아보기

제품

태그

질문:

2020년 4월 6일

편집:

2020년 4월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by