Unable to convert expression into double array.
Afficher commentaires plus anciens
Réponses (1)
Star Strider
le 7 Juil 2019
One way is to integrate it numerically rather than symbolically:
syms w
fun1pdf(w) = exp(w)/((1+exp(w))^2);
fun1mu(w) = w^3*fun1pdf(w);
F1mu = vpa(int(fun1mu,-Inf,Inf))
fun1mufcn = matlabFunction(fun1mu);
F1mu = integral(fun1mufcn, -Inf, Inf)
However, the result is:
F1mu =
NaN
3 commentaires
FANG LIU
le 7 Juil 2019
Star Strider
le 7 Juil 2019
I discovered the same problem. That is the reason I went to the integral function. It does produce a result, even though it may not be the one you may want.
FANG LIU
le 8 Juil 2019
Catégories
En savoir plus sur Export Simulink Model as Standalone FMU dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!![]40Z6]2GIOCWD0[(`49~2(J.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/227876/]40Z6]2GIOCWD0[(`49~2(J.png)
