ex6: remove plotting from ex6.m
ex6: vectorized dataset3Params.m
ex6: use ndgrid instead of repmat