how to combine matrices
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Ani Asoyan
il 23 Gen 2020
Commentato: Ani Asoyan
il 23 Gen 2020
I have two matrices: A & B ... I want to combine them so that every element will be near the other one's corresponding element. For example something like C matrix.
A=[1,2;3,4]
B=[5,6;7,8]
C=[15,26; 37, 48]
3 Commenti
Walter Roberson
il 23 Gen 2020
Note that if you have negative entries then you will need to define what the results are expected to be.
Risposta accettata
Walter Roberson
il 23 Gen 2020
A*10+B
6 Commenti
Walter Roberson
il 23 Gen 2020
That is not possible in MATLAB unless you are willing to use cell arrays C{1,2} = [-2 -6]
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!