필터 지우기
필터 지우기

How can i perform for loop in this case?

조회 수: 1 (최근 30일)
RADWAN A F ZEYADI
RADWAN A F ZEYADI 2021년 11월 17일
댓글: Jan 2021년 11월 21일
Hi
i have matrix with dimension 51*1
i would like to obtain 51*71 *3 because the function that i dealing with the output is 3d array any suggestions? thanks

답변 (1개)

Jan
Jan 2021년 11월 17일
x = rand(51, 1);
M = repmat(x, 1, 71, 3);
size(M)
ans = 1×3
51 71 3
  댓글 수: 2
RADWAN A F ZEYADI
RADWAN A F ZEYADI 2021년 11월 20일
thanks but i mean i would like to perfurme for loop in order to obtain 153*71
Jan
Jan 2021년 11월 21일
Why do you want to use a for loop, if there is no need to do so?
The question is vague and I can only guess, what you want as output.

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

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by