필터 지우기
필터 지우기

Info

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

reading values from vector into different equal parts over loop

조회 수: 2 (최근 30일)
sita
sita 2013년 6월 24일
마감: MATLAB Answer Bot 2021년 8월 20일
p1 = haltonset(1); for i=1:5 x1=p1(i*10^6,1); end
In this above portion of code i would like to read p1(1:10^6),p1(10^6:2*10^6)...p1(4*10^6:510^6)
Hi .Please help me in getting above
thanks, Sita

답변 (1개)

David Sanchez
David Sanchez 2013년 6월 24일
Is this what you need?
p1 = haltonset(1);
x1 = p1(1:10^6);
for i = 2:5
x1 = p1( (i-1)*10^6: i*10^6) );
end

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by