フィルターのクリア

extract array from a matrix

12 ビュー (過去 30 日間)
ADC
ADC 2018 年 8 月 29 日
コメント済み: ADC 2019 年 1 月 15 日
I need to extract the arrays from a tab that contain an assigned value for instance on the Matrix A take all the rows with contain the value 10 on the first column How Can I Do???

採用された回答

Christian Heigele
Christian Heigele 2018 年 8 月 29 日
Logical indexing:
A(A(:,1)==10,:)
That states which rows you want to select: A(:,1)==10 , with A(cond, :) you access all those who are selected.
  1 件のコメント
ADC
ADC 2019 年 1 月 15 日
very usefull but it doesn't work if for exsample I've the needed to import data like a table...
I got an error when put the operator ==, is there any other way to do it???

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by