필터 지우기
필터 지우기

Undefined function 'prctile' for input arguments of type 'double'.

조회 수: 2 (최근 30일)
Umesh Patil
Umesh Patil 2017년 10월 10일
답변: Janak Thotakura 2017년 10월 12일
I need is to get the value at a specific position (eg., in this case 25th position) of a random datasets if arranged in ascending order. For example, if I run the following 2 simple commands, I am expecting and I am getting the following output from MATLAB which is installed in my LINUX PC (Matlab-R2009a). --------------------------------------------------------------------- >> data=[ 7 8 9 3 6 11 23 5 2 1 0 ] data = 7 8 9 3 6 11 23 5 2 1 0 >> prctile(data,25) ans = 2.2500 >> --------------------------------------------------------------------- But for the same 2 simple commands, I am getting the following output from Aditya MATLAB --------------------------------------------------------------------- >> data=[ 7 8 9 3 6 11 23 5 2 1 0 ] data = Columns 1 through 10 7 8 9 3 6 11 23 5 2 1 Column 11 0 >> prctile(data,25) Undefined function 'prctile' for input arguments of type 'double'. >>
  댓글 수: 1
John D'Errico
John D'Errico 2017년 10월 10일
Does that system have a copy of the statistics toolbox? What version of MATLAB is this other system running?

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

답변 (1개)

Janak Thotakura
Janak Thotakura 2017년 10월 12일
As @John pointed out, the 'prctile' function requires 'Statistics and Machine Learning Toolbox' installed in the machine.
Enter the below command in the MATLAB Command Window to view the installed toolboxes.
  • for MATLAB versions R2012b and later:
>> ver -support
  • for MATLAB versions R2012a and earlier:
>> ver
Hope this helps

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by