Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using betacdf #8

Open
XinWangNeuro opened this issue Mar 3, 2021 · 2 comments
Open

Error using betacdf #8

XinWangNeuro opened this issue Mar 3, 2021 · 2 comments

Comments

@XinWangNeuro
Copy link

Hi, I tried to use the mostest_demo data to run the 'mostest.m' in Matlab2020b, but get the errors as follow:
**"Error using betacdf
Too many input arguments.

Error in prob.BetaDistribution.cdffunc (line 163)
[varargout{1:nargout}] = betacdf(varargin{:});

Error in prob.ToolboxParametricDistribution/cdffun (line 16)
[varargout{1:nargout}] = this.cdffunc(x,pcell{1:min(end,this.NumParameters)},covarg{:},varargin{:});

Error in prob.TruncatableDistribution/cdf (line 153)
y = cdffun(this,x,varargin{:});

Error in mostest (line 209)
cdf_minpvecs=cdf(pd_minpvecs,10.^-hv_maxlogpvecs,'upper');"**

Could you help me to figure out the issue? thanks.

@ofrei
Copy link
Collaborator

ofrei commented Mar 4, 2021

@XinWangNeuro Thank you for reporting this, I will try to investigate.

@daidaidaluannan
Copy link

Hi, I tried to use the mostest_demo data to run the 'mostest.m' in Matlab2020b, but get the errors as follow: **"Error using betacdf Too many input arguments.

Error in prob.BetaDistribution.cdffunc (line 163) [varargout{1:nargout}] = betacdf(varargin{:});

Error in prob.ToolboxParametricDistribution/cdffun (line 16) [varargout{1:nargout}] = this.cdffunc(x,pcell{1:min(end,this.NumParameters)},covarg{:},varargin{:});

Error in prob.TruncatableDistribution/cdf (line 153) y = cdffun(this,x,varargin{:});

Error in mostest (line 209) cdf_minpvecs=cdf(pd_minpvecs,10.^-hv_maxlogpvecs,'upper');"**

Could you help me to figure out the issue? thanks.

Hello, I don't know if you have solved this problem now, I had the same problem when I used it today. The reason for this problem is that the input of the betacdf function should be three cells, including x,a,b, and ''upper'' this parameter without input. But 'varargin' contains four arguments: x, a, b, and 'upper', so it will report an error. My correction is to enter only the first three cells, for example varargin{1:3} , hope this method can help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants