select the first row in the matrix

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)

2 Comments

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

Tags

Asked:

on 27 May 2022

Commented:

on 27 May 2022

Community Treasure Hunt

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

Start Hunting!