I have a table like this and I want to select only the rows where A>14 and B<1700. How to give both conditions together? Please Help.

1 view (last 30 days)
A B
10.269473 1479.6947
9.6246681 1325.8943
9.2562313 1215.6459
10.157804 1481.1494
8.9590359 1111.1162
7.9809303 712.88300
7.7310958 670.68652
7.5487347 635.37970
3.8393710 10.191486
4.5286098 2.4019780
4.9408536 48.987740
5.8539968 245.45227
7.9104948 779.95020
9.2476778 1164.4354
8.2490454 893.66010
9.3364477 1245.2179

Accepted Answer

James Tursa
James Tursa on 10 Jul 2018
T = your table
result = T(T.A>14 & T.B<1700,:);

More Answers (0)

Categories

Find more on Tables in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!