delete some matrix values

1 Ansicht (letzte 30 Tage)
Takim Mustakim
Takim Mustakim am 10 Nov. 2022
Kommentiert: Arif Hoq am 10 Nov. 2022
A = [1 2 3 4 5 6 7 8 9];
how to make A < 7:
A = [1 2 3 4 5 6]

Akzeptierte Antwort

Arif Hoq
Arif Hoq am 10 Nov. 2022
A = [1 2 3 4 5 6 7 8 9];
B=A(A<7)
B = 1×6
1 2 3 4 5 6
  2 Kommentare
Takim Mustakim
Takim Mustakim am 10 Nov. 2022
can i : A = A (A<7) ????
Arif Hoq
Arif Hoq am 10 Nov. 2022
possible....
A = [1 2 3 4 5 6 7 8 9];
A=A(A<7)
A = 1×6
1 2 3 4 5 6

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by