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
Voss
Voss 2024년 5월 23일
You're welcome

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

추가 답변 (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