Drawing a tree part function ?

6 ビュー (過去 30 日間)
Am
Am 2013 年 12 月 16 日
回答済み: Walter Roberson 2013 年 12 月 16 日
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 ?

採用された回答

Walter Roberson
Walter Roberson 2013 年 12 月 16 日
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 件)

カテゴリ

Help Center および File ExchangeNumeric Solvers についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by