Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

reading values from vector into different equal parts over loop

2 Ansichten (letzte 30 Tage)
sita
sita am 24 Jun. 2013
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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

Antworten (1)

David Sanchez
David Sanchez am 24 Jun. 2013
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

Diese Frage ist geschlossen.

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by