Hey guys,
Just wondering if there is a way to use an increment in a loop (i.e. r++), but instead of increasing by 1 each time, will increase by 0.1.
For example, in the code used below:
For[r = 1, r <= 32, r++,
For[j = 1, j <= Length[XandY], j++,
If[Sqrt[(y[j] - 4.8)^2 + (x[j] - 2.6)^2] <= r,
plotCount[[r]] = plotCount[[r]] + 1]]]
Thanks,
Lewis Millar