prctile function not working
7 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!