Displaying all elements of a matrix less than -50

2 次查看(过去 30 天)
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by