Info

この質問は閉じられています。 編集または回答するには再度開いてください。

reading values from vector into different equal parts over loop

1 回表示 (過去 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