ChrisRackauckas commented Jul 7, 2017 I actually didn't know you could do it in MATLAB with val a number. I always thought it had to be an array of similar size. I can add a dispatch for this pretty ...