Drawing a tree part function ?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Am
le 16 Déc 2013
Réponse apportée : Walter Roberson
le 16 Déc 2013
How can I draw a three part function (each part has a particular domain for the variable) in mupad or other drawing tools of matlab ?
0 commentaires
Réponse acceptée
Walter Roberson
le 16 Déc 2013
See http://www.mathworks.co.uk/matlabcentral/answers/109828-piecewise-functions-using-operator for a way to define an anonymous function in parts.
If each section is polynomial, then see http://www.mathworks.com/help/matlab/ref/mkpp.html and ppval()
In the Symbolic Toolbox, you can use MuPAD's piecewise; see http://www.mathworks.com/help/symbolic/mupad_ref/piecewise.html
Note that there is no direct syntax for this from the MATLAB interface. If you are working from the MATLAB interface, you can use evalin(symengine) or feval(symengine) to construct a piecewise object
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!