필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

n*2 matrix which come from output--Row is not fixed but column is 2--- and that process rotate in loop 10 times save all values of loop in result matrix

조회 수: 3 (최근 30일)
a=18;
b=22;
for i=1:10
r1 = randi([18 22],1,1)
name= (b-a).*rand(r1,2) + a
end
save this all name matrix values which generate in each loop save in result matirx
  댓글 수: 2
Pratik Anandpara
Pratik Anandpara 2017년 4월 9일
a=18:
b=22;
for i=1:10
r1 = randi([18 22],1,1)
name= (b-a).*rand(r1,2) + a
end
save this all name matrix values which generate in each loop save in result matirx

답변 (1개)

Jan
Jan 2017년 4월 12일
A guess:
name = cell(1, 10);
a = 18:
b = 22;
for i = 1:10
r1 = randi([18 22],1,1);
name{i} = (b-a) .* rand(r1, 2) + a;
end

이 질문은 마감되었습니다.

태그

아직 태그를 입력하지 않았습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by