Hi everyone

May I know if there is a function which can create an array of elements which are equally spaced? Just like MATLAB function “linspace” which creates number of equally spaced elements between two values.

For example, I would like to know if arduino can create an array with 11 equally spaced elements between 0 and 4 which gives us [0, 0.4, 0.8, 1.2, 1.6, 2.0, 2.4, 2.8, 3.2, 3.6, 4.0]. Please help me.

Thank you so much!

Tommy