MATLAB: Built-in min() function has stopped working.

broken built in functionfunction nameshadowshadow function

Something has caused my minimum function to quit working out of the blue. I was working in 2011b. With a vector of double-precision data, max(data) returns the maximum value and min(data) returns the error "Index exceeds matrix dimensions."
I tested it on other vector data that I generated with data = randi(100,1) and with data = 1:1:100; same results.
I restarted Matlab and the computer and it still happens. I installed a fresh copy of 2013b and it still happens. What could be going on here?

Best Answer

My apologies - stupid mistake has been located. A variable representing minutes shares the function name "min".