Problem 895. Generate N equally spaced intervals between -L and L

Given N and L, return a list of numbers (in ascending order) that divides the interval [-L L] into N equal-length segments.
For example, if L = 3 and N = 2
y = [ -3 0 3 ]

Solution Stats

41.36% Correct | 58.64% Incorrect
Last Solution submitted on Jul 09, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers852

Suggested Problems

More from this Author55

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!