select the first row in the matrix

2 views (last 30 days)
Yonca DOGU
Yonca DOGU on 27 May 2022
Commented: KSSV on 27 May 2022
I have a matrix named A and I want to get a new matrix B by pulling the first row of it.
Sample:
A:
[1,2,3;...
4,5,8;...
3.9.5];
B-matrix:
[1,2,3]
How can I do that?

Answers (1)

KSSV
KSSV on 27 May 2022
  2 Comments
Yonca DOGU
Yonca DOGU on 27 May 2022
I want matrix A to stay constant as I will use it in other steps, print the first row in matrix A on matrix B pls

Sign in to comment.

Categories

Find more on Data Types in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!