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 Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by