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

New to MATLAB?

basic code question

Asked by John

John

on 22 Mar 2012
Accepted Answer by Geoff

Geoff

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

John

Tags

Products

No products are associated with this question.

1 Answer

Answer by Geoff

Geoff

on 22 Mar 2012
Accepted answer

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

C = [A B];

0 Comments

Geoff

Geoff

Contact us