MATLAB Answers

How to combine two arrays?

1,282 views (last 30 days)
SUSHMA MB on 6 Mar 2017
Commented: Talha Azmat on 7 Jan 2020
I have two arrays
x = 561x1 double
y = 561x1 double
How can i combine it into
z = 561x2 double
  1 Comment
Talha Azmat
Talha Azmat on 7 Jan 2020
use combine function

Sign in to comment.

Accepted Answer

KSSV on 6 Mar 2017
x = rand(561,1) ;
y = rand(561,1) ;
z = [x y]

More Answers (0)

Community Treasure Hunt

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

Start Hunting!