How to combine two arrays with different dimensions into one array in one column.

2 vues (au cours des 30 derniers jours)
Mads Andersen
Mads Andersen le 3 Mai 2018
Modifié(e) : Stephen23 le 3 Mai 2018
Hey guys. Does any of you know a nifty way to combine two arrays of different dimensions into one array.
for example i want to combine
A = (3000,1)
B = (2500,1)
and i want to to combine A and B into C
C = (5500,1)

Réponses (1)

Stephen23
Stephen23 le 3 Mai 2018
Modifié(e) : Stephen23 le 3 Mai 2018
C = [A;B]
Basic MATLAB concepts, such as how to make and concatenate arrays, are explained in the introductory tutorials (which are highly recommended for all beginners):

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by