You can use a range, which works similarly to MATLAB's: seq = 5:5:20
where the number in the middle is the step size. This will create a range that can be iterated (e.g., in a for loop). If you need an array instead, you can use seq = [5:5:20] -- João Felipe Santos On Wed, Mar 12, 2014 at 11:40 PM, Ben Ward <axolotlfan9...@gmail.com> wrote: > Hi all, > > In R if I want to generate a sequence of numbers, say 5, 10, 15, 20, in R > seq(from=5, to=20, by=5) would achieve this. I've had a glance over the > sections of the standard library functions doc and didn't see a function > like this - (unless it has a totally different name or a package provides > it). Is there a function like this for Julia that does this easily? > > Thanks, > Ben. >