Built-in min() function has stopped working.

조회 수: 22 (최근 30일)
John
John 2014년 4월 4일
댓글: per isakson 2014년 4월 4일
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?
  댓글 수: 3
John
John 2014년 4월 4일
>> which min -all min is a variable. built-in (C:\Program Files\MATLAB\R2011b\toolbox\matlab\datafun@logical\min) % Shadowed logical method built-in (C:\Program Files\MATLAB\R2011b\toolbox\matlab\datafun\@char\min) % Shadowed char method built-in (C:\Program Files\MATLAB\R2011b\toolbox\matlab\datafun\@double\min) % Shadowed double method built-in (C:\Program Files\MATLAB\R2011b\toolbox\matlab\datafun\@uint8\min) % Shadowed uint8 method built-in (C:\Program Files\MATLAB\R2011b\toolbox\matlab\datafun\@uint16\min) % Shadowed uint16 method built-in (C:\Program Files\MATLAB\R2011b\toolbox\matlab\datafun\@uint32\min) % Shadowed uint32 method built-in (C:\Program Files\MATLAB\R2011b\toolbox\matlab\datafun\@uint64\min) % Shadowed uint64 method built-in (C:\Program Files\MATLAB\R2011b\toolbox\matlab\datafun\@int8\min) % Shadowed int8 method built-in (C:\Program Files\MATLAB\R2011b\toolbox\matlab\datafun\@int16\min) % Shadowed int16 method built-in (C:\Program Files\MATLAB\R2011b\toolbox\matlab\datafun\@int32\min) % Shadowed int32 method built-in (C:\Program Files\MATLAB\R2011b\toolbox\matlab\datafun\@int64\min) % Shadowed int64 method built-in (C:\Program Files\MATLAB\R2011b\toolbox\matlab\datafun\@single\min) % Shadowed single method C:\Program Files\MATLAB\R2011b\toolbox\distcomp\parallel\@codistributed\min.m % Shadowed codistributed method C:\Program Files\MATLAB\R2011b\toolbox\mbc\mbcmodels\@localpspline\min.m % Shadowed localpspline method C:\Program Files\MATLAB\R2011b\toolbox\mbc\mbcmodels\@localpoly\min.m % Shadowed localpoly method C:\Program Files\MATLAB\R2011b\toolbox\shared\statslib\@ordinal\min.m % Shadowed ordinal method C:\Program Files\MATLAB\R2011b\toolbox\matlab\timeseries\@timeseries\min.m % Shadowed timeseries method
per isakson
per isakson 2014년 4월 4일
I asked for it!

댓글을 달려면 로그인하십시오.

채택된 답변

John
John 2014년 4월 4일
My apologies - stupid mistake has been located. A variable representing minutes shares the function name "min".

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Numeric Types에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by