How to solve matrices problem

3 visualizaciones (últimos 30 días)
Alya Z
Alya Z el 21 de Sept. de 2017
Editada: Torsten el 16 de Nov. de 2024
Hi, I have few questions: 1. Let say I have a = [1 2 3; 4 5 6; 7 8 10] and I wanted to have 10 times of matrix a? How to do that? 2. I have 10 different matrix with the same size,for eg. 3x3, how to add all these 10 different matrix?
  2 comentarios
Lokesh
Lokesh el 16 de Nov. de 2024
have few questions: 1. Let say I have a = [1 2 3; 4 5 6; 7 8 10] and I wanted to have 10 times of matrix a? How to do that? 2. I have 10 different matrix with the same size,for eg. 3x3, how to add all these 10 different matrix?
Torsten
Torsten el 16 de Nov. de 2024
Editada: Torsten el 16 de Nov. de 2024
Why do you repeat the question asked (and answered) ? Is this a forum test ?

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 21 de Sept. de 2017
Editada: Image Analyst el 21 de Sept. de 2017
Try this for #1:
a = [1 2 3; 4 5 6; 7 8 10]
aWide = repmat(a, [1, 10]) % Create 3 by 30 matrix.
aTall = repmat(a, [10, 1]) % Create 30 by 3 matrix.
Try this for #2:
aAll = a1 + a2 + a3 + a4 + a5 + a6 + a7 + a8 + a9 + a10;

Más respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by