How to obtain a square matrix from a column matrix

조회 수: 1 (최근 30일)
Parthu P
Parthu P 2020년 1월 8일
댓글: Rik 2020년 1월 8일
Hi
How to get matrix AA from matrix A such that it matches with X and Y scales in following picture?
New Microsoft PowerPoint Presentation (2).jpg
  댓글 수: 2
Rik
Rik 2020년 1월 8일
With what values should the empty places be filled?
Parthu P
Parthu P 2020년 1월 8일
Thanks Rik,
empty places be filled with values from matrix A.

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

답변 (1개)

Rik
Rik 2020년 1월 8일
So like this?
AA=repmat(A,1,9);
  댓글 수: 2
Parthu P
Parthu P 2020년 1월 8일
Thanks Rik,
Actually I tried this before but it replicates all columns in same sequence. However, I want AA to match sequence/scale of X and Y. It means AA will not have any entire row or column values matching with other row or columns of AA.
Rik
Rik 2020년 1월 8일
You lack a good description of your desired outcome. Given these three vectors, what exact values should AA contain and how do you derive them?

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

카테고리

Help CenterFile Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by