I have this code in matlab:
z = linspace(d1,d2,n)*W/t;
I am wondering how to express this operation in mathematical notation?
I was thinking of something like this
[d1 + (N).*((d2 - d1)/(n-1))]*W/t; Where N = 0,1,2,...(n-1)
But is there a fancier or more correct way or clearer way of writing this?