How to solve matrices problem

조회 수: 2 (최근 30일)
Alya Z
Alya Z 2017년 9월 21일
편집: Torsten 2024년 11월 16일
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
Lokesh
Lokesh 2024년 11월 16일
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 2024년 11월 16일
편집: Torsten 2024년 11월 16일
Why do you repeat the question asked (and answered) ? Is this a forum test ?

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2017년 9월 21일
편집: Image Analyst 2017년 9월 21일
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;

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by