Watch this Author's files
Should be "for i=1:(b-a)+1" not
"for i=1:(b-a)" otherwise the final element in the array will never change from value of b
Contact us