prctile function not working

조회 수: 8 (최근 30일)
Dina Lipkind
Dina Lipkind 2019년 4월 18일
댓글: Dina Lipkind 2019년 4월 18일
Hello,
I am trying to run the function prctile on Matlab 2018b or 2019a, and get the following error message:
Error using validatestring (line 60)
Second argument must be an array of strings or a cell array of character vectors.
Error in prctile (line 66)
validatestring(method,["exact", "approximate"]);
This is the code I ran (taken from Mathworks help example):
x = normrnd(5,2,1,10);
Y = prctile(x,42)
I just switched to matlab 2018/2019, and was previously using prctile successfully in matlab 2013 and 2016. I have the statsitics and machine learning toolbox installed.
Thank you very much for your help.
Dina
  댓글 수: 2
Walter Roberson
Walter Roberson 2019년 4월 18일
What shows up for
which -all validatestring
Dina Lipkind
Dina Lipkind 2019년 4월 18일
C:\Program Files\MATLAB\R2019a\toolbox\matlab\lang\validatestring.m
But in the meantime problem was solved by removing a folder from matlabpath

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by