sig_tr_sib=normpdf(norminv(cdf(gamma_sib,SIB)))/(pdf(gamma_sib,SIB)); %transformation
mu_tr_sib=SIB-norminv(cdf(gamma_sib,SIB)).*sig_tr_sib;
Undefined function 'expm1' for input arguments of type 'sym'.
Error in wblcdf>localwblcdf (line 94)
p = -expm1(-z);
Error in wblcdf (line 51)
[varargout{1:max(1,nargout)}] = localwblcdf(uflag,x,varargin{:});
Error in prob.WeibullDistribution.cdffunc (line 223)
[varargout{1:nargout}] = wblcdf(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 NewTopplingRIA (line 348)
sig_tr_sib=normpdf(norminv(cdf(gamma_sib,SIB)))/(pdf(gamma_sib,SIB)); %transformation

Antworten (1)

Star Strider
Star Strider am 13 Mär. 2021

0 Stimmen

The expm function can accept symbolic arguments, however expm1 cannot.

4 Kommentare

Walter Roberson
Walter Roberson am 13 Mär. 2021
Expanding further: many functions in the statistics toolbox cannot accept symbolic values.
A lot of the stats functions have simple bounds tests such as the inverse cdf checking that the inputs are in the range 0 to 1. Symbolic expressions cannot use those tests: if x<0 cannot be resolved when x involves a symbolic variable.
Star Strider
Star Strider am 13 Mär. 2021
Walter — Thank you for expanding on that.
The solution would likely be to use erf and its friends, that do take symbolic arguments. They would need to be modified slightly to work as the normal distribution, however that information is in the documentation.
MANOJ KUMAR
MANOJ KUMAR am 14 Mär. 2021
Thank you.
Star Strider
Star Strider am 14 Mär. 2021
My pleasure.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 13 Mär. 2021

Kommentiert:

am 14 Mär. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by