A = [1 2 3 4 5 6 7 8 9];
how to make A < 7:
A = [1 2 3 4 5 6]

 Accepted Answer

A = [1 2 3 4 5 6 7 8 9];
B=A(A<7)
B = 1×6
1 2 3 4 5 6

2 Comments

can i : A = A (A<7) ????
possible....
A = [1 2 3 4 5 6 7 8 9];
A=A(A<7)
A = 1×6
1 2 3 4 5 6

Sign in to comment.

More Answers (0)

Products

Release

R2021a

Asked:

on 10 Nov 2022

Commented:

on 10 Nov 2022

Community Treasure Hunt

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

Start Hunting!