MATLAB Answers

John

basic code question

Asked by John
on 22 Mar 2012

Hello,

If I have a 2 vectors A and B, how would I save them as one vector in the workspace called C? For example C would be <100x2double>?

Thank you

  0 Comments

Tags

Products

No products are associated with this question.

1 Answer

Answer by Geoff
on 22 Mar 2012
 Accepted answer

I assume A and B are both 100x1 row-vectors:

C = [A B];

  0 Comments


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today