delete some matrix values

1 次查看(过去 30 天)
A = [1 2 3 4 5 6 7 8 9];
how to make A < 7:
A = [1 2 3 4 5 6]

采纳的回答

Arif Hoq
Arif Hoq 2022-11-10
A = [1 2 3 4 5 6 7 8 9];
B=A(A<7)
B = 1×6
1 2 3 4 5 6
  2 个评论
Takim Mustakim
Takim Mustakim 2022-11-10
can i : A = A (A<7) ????
Arif Hoq
Arif Hoq 2022-11-10
possible....
A = [1 2 3 4 5 6 7 8 9];
A=A(A<7)
A = 1×6
1 2 3 4 5 6

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by