Random Matrix creation from the elements of a given vector

2 ビュー (過去 30 日間)
Rajkumar Verma
Rajkumar Verma 2024 年 5 月 21 日
コメント済み: Voss 2024 年 5 月 23 日
Dear all,
I have a vector A containing the elements [EI, VI, I, SI, M, SS, S, VS, ES]. I want to create a 7x20 random matrix using the elements from vector A. How can I do this?

採用された回答

Voss
Voss 2024 年 5 月 21 日
M = A(randi(numel(A),7,20));
  8 件のコメント
Rajkumar Verma
Rajkumar Verma 2024 年 5 月 23 日
Thanks.
Voss
Voss 2024 年 5 月 23 日
You're welcome

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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