Is there an equivalent of the Python range function in MATLAB?

Viewed 22480

Is there an equivalent MATLAB function for the range() function in Python?

I'd really like to be able to type something like range(-10, 11, 5) and get back [-10, -5, 0, 5, 10] instead of having to write out the entire range by hand.

3 Answers
Related