how do you get a grid L(h, x0) which is characterized by the parameters h = 0.005 and x0 = 0?
January 30th 2010, 02:06 PM
Laurent
Quote:
Originally Posted by adam_leeds
how do you get a grid L(h, x0) which is characterized by the parameters h = 0.005 and x0 = 0?
Maybe I understand wrong, but you may be looking for the command "a:h:b", which returns the array [a, a+h, a+2h, ..., b] (the last item is not necessarily b, but the highest number a+kh before b, I think). Like 0:0.5:2 gives [0,0.5,1,1.5,2].