Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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

John

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

Geoff

Contact us