MATLAB Answers

How to obtain a square matrix from a column matrix

조회 수: 4(최근 30일)
Parthu P
Parthu P 8 Jan 2020
댓글: Rik 8 Jan 2020
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 8 Jan 2020
With what values should the empty places be filled?
Parthu P
Parthu P 8 Jan 2020
Thanks Rik,
empty places be filled with values from matrix A.

로그인 to comment.

답변(1개)

Rik
Rik 8 Jan 2020
So like this?
AA=repmat(A,1,9);

  댓글 수: 2

Parthu P
Parthu P 8 Jan 2020
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 8 Jan 2020
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?

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by