I'm new to matlab and would like to create a new vector equal to a row of an nxn matrix that I already have. I know how to do it with loops but is there a command? Something like
Vector = Matrix(RowNumber, :); -This is really basic Matlab. If you are a brand new user, might I suggest working through one of the beginner tutorials here before asking any further questions on SO. I'm not trying to put you off asking questions here, just pointing out that the solution to this question will be in the first couple of pages of any beginner tutorial on Matlab.
- Colin T Bowers
@ColinTBowers U can make it an anwser for upvotes:-)
- Marcin
@Marcin To be honest, I'm content for a newer user to get the up-votes for a question like this. I've always felt a few easy answers helps get them started, and then hopefully they'll continue to contribute.
- Colin T Bowers
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
Vector = Matrix(RowNumber, :);-This is really basic Matlab. If you are a brand new user, might I suggest working through one of the beginner tutorials here before asking any further questions on SO. I'm not trying to put you off asking questions here, just pointing out that the solution to this question will be in the first couple of pages of any beginner tutorial on Matlab. - Colin T Bowers