Effacer les filtres
Effacer les filtres

take three matrices into a single matrix

1 vue (au cours des 30 derniers jours)
Eranja Noopehewa
Eranja Noopehewa le 31 Juil 2018
Modifié(e) : jonas le 31 Juil 2018
i have three matrix each of size 1*100 how can i take it to a single matrix of 3*100

Réponse acceptée

jonas
jonas le 31 Juil 2018
Modifié(e) : jonas le 31 Juil 2018
A=[a1;a2;a3]
a1 through a3 are single line vectors

Plus de réponses (1)

Alex Fratila
Alex Fratila le 31 Juil 2018
Let's say your matrices are named a, b, and c. Then, you can concatenate them like this:
newMatrix = [a ; b ; c];
The semicolon stacks your matrices on top of each other (vertical concatenation). Here is a page with more info!

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by