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 ]
y = linspace(-L,L,N)
It strangely does not work
Project Euler: Problem 1, Multiples of 3 and 5
vectorization in N
Wrapping the Tower of Pisa
Remove from a 2-D matrix all the rows that contain at least one element less than or equal to 4
First N Perfect Squares
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
Solve the Sudoku Row
Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)
Make a 1 hot vector
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office