MATLAB Answers

indexing into a matrix

1 view (last 30 days)
hello,
i have here a matrix called A, which is equal :
1 8 2
5 4 8
4 4 1
A = 5 1 0
4 8 7
4 4 4
4 4 1
my goal is to extract the 1st 3rd and second to last (6th) rows.
how can do it?

  0 Comments

Sign in to comment.

Accepted Answer

Sindar
Sindar on 16 Feb 2020
Edited: Sindar on 16 Feb 2020
A([1 3 end-1],:)

  1 Comment

mohamed essabir
mohamed essabir on 16 Feb 2020
thank you

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags

Products