Error Using the 'all' input argument with prctile function

I am running Matlab_R2018a, and I am trying to run the prctile function on a large multidimensional array. I would like to be able to run the prctile function exactly as described in the documentation. However, when I try to run the following:
X = reshape(1:30,[3,5,2])
Y = prctile(X,[40,60],'all')
I get the following error:
Error using :
For colon operator with char operands, first and last operands must be char.
Error in prctile (line 69)
perm = [dim:max(nDimsX,dim) 1:dim-1];
I can run the prctile function without error until I include the 'all' input argument. That is when I get the above error.

 채택된 답변

Steven Lord
Steven Lord 2019년 5월 30일

0 개 추천

That functionality was introduced in release R2018b as stated in the Release Notes.

추가 답변 (0개)

제품

릴리스

R2018a

태그

질문:

2019년 5월 30일

답변:

2019년 5월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by