Hello Grace,
You can simply concate 2 or more arrays in below fasion.
If A and B are 2 row arrays and you want A being appended by B, then...
Will give you this result.
If A and B are column arrays then....
Appended_A_by_B = [A; B];
There is also a function cat which can be used to concatenate arrays or matrices. You can know more about it here:
Cheers
2 Comments
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/523329-writing-a-program-to-combine-multiple-arrays#comment_842184
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/523329-writing-a-program-to-combine-multiple-arrays#comment_842184
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/523329-writing-a-program-to-combine-multiple-arrays#comment_842186
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/523329-writing-a-program-to-combine-multiple-arrays#comment_842186
Sign in to comment.