There are several ways to create a list in Matlab that goes from 0 to 49/50 in increments of 1/50
A = (0:49)/50 B = 0:1/50:49/50 C = linspace(0,49/50,50)
EDIT As Sam Roberts pointed out in the comments, although all of these lists should be equivalent, the numerical results are different from floating point errors. For instance:
max(abs(AB)) ans = 1.1102e-16
Jonas source share