フィルターのクリア

find value in matrix

2 ビュー (過去 30 日間)
Rahul
Rahul 2012 年 6 月 4 日
a =
3.00 16.00
6.00 22.00
2.00 6.00
1.00 25.00
4.00 4.00
I want those rows in which second column is less than a certain value say 15
b= 2 6
4 4
DO i need to sort or can I do it without sorting..

採用された回答

Thomas
Thomas 2012 年 6 月 4 日
You can do without sorting:
b=a(a(:,2)<15,:)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeShifting and Sorting Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by