Displaying all elements of a matrix less than -50

3 ビュー (過去 30 日間)
Aaron Grandbouche
Aaron Grandbouche 2021 年 1 月 21 日
コメント済み: Aaron Grandbouche 2021 年 1 月 21 日
In my homework I have to assign a column vectore e to all the elements of matrix M that are less than -50, then display them like so
-60
-83
-78
-51
All my attempts so far have only yielded a logical array of 1s and 0s, and to be honest I have no clue where to go. Also it probably goes without saying that I am very new to MatLab. Thanks in advance!

採用された回答

David Hill
David Hill 2021 年 1 月 21 日
e=M(M<-50)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by