How to construct matrix?
Afficher commentaires plus anciens
So I have written the following 4*3 matrix but I want to construct it with 'ones' and '.*' but I am unsure how to.
[12 2 1; 4 12 1; 6 2 1; 2 4 1];
1 commentaire
Rik
le 8 Déc 2019
What exactly is your goal?
Réponses (2)
FraFal
le 8 Déc 2019
0 votes
Hi,
I don't know if I understood correctly, but you can concatenate two matrices:
- M1 = ones( size(M) ); --> matrix of '1';
- M2 = sym('.*',[4 3]); --> symbolic matrix 4x3;
BR,
FraFal
Jenny Andersen
le 8 Déc 2019
Modifié(e) : Jenny Andersen
le 8 Déc 2019
0 votes
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!