How to construct matrix?

9 visualizaciones (últimos 30 días)
Jenny Andersen
Jenny Andersen el 8 de Dic. de 2019
Comentada: Rik el 8 de Dic. de 2019
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 comentario
Rik
Rik el 8 de Dic. de 2019
What exactly is your goal?

Iniciar sesión para comentar.

Respuestas (2)

FraFal
FraFal el 8 de Dic. de 2019
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
Jenny Andersen el 8 de Dic. de 2019
Editada: Jenny Andersen el 8 de Dic. de 2019
This seems like a good idea, but I can't seem to run the script.

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by