Filter struct with condition

조회 수: 6 (최근 30일)
Marcin Slowiak
Marcin Slowiak 2018년 4월 12일
Hi, I have struct labeled as Area and BoundingBox which I got from regionprops function.
I want now get struct with the same data but without rows with Area < 50
How can I do that in a smart way?
Eg.
Area | BoundingBox
53 [936,500000000000 40,5000000000000 11 13]
51 [620,500000000000 6,50000000000000 13 10]
50 [651,500000000000 8,50000000000000 9 11]
48 [692,500000000000 59,5000000000000 7 12]
48 [69,5000000000000 159,500000000000 7 13]
47 [379,500000000000 484,500000000000 7 10]
44 [929,500000000000 76,5000000000000 10 7]
42 [608,500000000000 0,500000000000000 7 9]
40 [933,500000000000 33,5000000000000 7 9]
38 [691,500000000000 194,500000000000 10 9]
Expected result:
Area | BoundingBox
53 [936,500000000000 40,5000000000000 11 13]
51 [620,500000000000 6,50000000000000 13 10]

답변 (0개)

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by