deleting specific rows in an array based on values in another array

I have two 16x1 column vectors, the first is [1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16], and another [777; 777; 0; 0; -9; 0; 0; -6; 0; 0; 0; 777; 0; 0; 0; 777]
I need to delete the values from the first column that correspond to the rows in column 2 that contain 777
i.e. [1; 2; 12; 16]

 採用された回答

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2018 年 2 月 22 日

回答済み:

2018 年 2 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by