MATLAB Answers

How to combine two arrays?

2,082 views (last 30 days)
SUSHMA MB
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
KSSV on 6 Mar 2017
x = rand(561,1) ;
y = rand(561,1) ;
z = [x y]

  0 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!