Astrid
2012-02-29 11:02:16 UTC
Hello!
In a for-loop in the moment I have this:
for k=0:10000:59999
This works.
But I want to give the stepsize 10000 as argv-Parameter.
I call the octave-script and give 5000 as Parameter.
I display it, and it shows the 5000 correct.
But in the loop, which I change to:
for k=0:istepsize:59999
it than takes 53, 106, 159, 212 and so on for the k.
How I have to modify the for-loop, that it works with the correct
parameter?
Regards, Astrid
In a for-loop in the moment I have this:
for k=0:10000:59999
This works.
But I want to give the stepsize 10000 as argv-Parameter.
I call the octave-script and give 5000 as Parameter.
I display it, and it shows the 5000 correct.
But in the loop, which I change to:
for k=0:istepsize:59999
it than takes 53, 106, 159, 212 and so on for the k.
How I have to modify the for-loop, that it works with the correct
parameter?
Regards, Astrid