mupad command calling from matlab produce wrong results
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I need to evaluate mupad command "discont" from MATLAB. In Mupad notebook the result is correct and looks like:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/163082/image.png)
But, when I use the feval command from MATLAB I get the wrong result
syms x
f = 1/(log(x) + 1)
feval(symengine,'discont',f,x)
ans =
[ exp(-1), 0]
or evalin command
evalin(symengine,'discont(1/(log(x) + 1),x)')
ans =
[ exp(-1), 0]
0 commentaires
Réponses (1)
Stefan Wehmeier
le 20 Avr 2017
I cannot reproduce this. In any case, you cannot work with intervals in MATLAB; this is why
poles(f)
gives you just the endpoint of the branch cut of log.
0 commentaires
Voir également
Catégories
En savoir plus sur Get Started with MuPAD dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!