Attempting to Rerun the program, I am now running into an error earlier in the script. I think this is due to corrections I tried to make with ".hist". When I do the command h=qchist(dat); it comes back
>> h = qchist(dat);
Error using matlab.graphics.axis.Axes/set
While setting the 'XLim' property of 'Axes':
Value must be a 1x2 vector of numeric type in which the second element is larger than the
first and may be Inf
Error in qchist (line 91)
set(gca, 'XLim', XLim);