Range Matlab Function Example