Let x_ini be the initial value and x_fin be the final value in a sequence. If I want to create an array of n points The I just go
this creates an array of n points starting at xini and excluding the endpoint. No I want the endpoint to be included in the sequence. How do I do this? Should be trival but I can't figure it out.Code:x[i] = xini + (xfin - xini)*i/n