Group Abstract Group Abstract

Message Boards Message Boards

0
|
7.5K Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Increment of a Decimal?

Posted 11 years ago
POSTED BY: Lewis Millar
2 Replies

Try

For[r = 1, r <= 32, r++, 
 For[j = 1, j <= Length[XandY], j = j + 0.1, 
  If[Sqrt[(y[j] - 4.8)^2 + (x[j] - 2.6)^2] <= r, 
   plotCount[[r]] = plotCount[[r]] + 1]]]
Posted 11 years ago

Thanks, I just had a brainwave though! Basically just used <= r/10

Cheers for the response!

POSTED BY: Lewis Millar
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard