generalize a function according to input
古いコメントを表示
Hi, i need your suggestion about generalize a code for each variable. For example, i have a code, but it is special for x. I have a function like f(x)=x.^2-3*x+5; and this code generate f(x) according to x. I want to generalize code for x,y,z,... and more variable, for example if my function is f(x,y)= x.^2-2*y+6, i want code to work for x and y variable.
So i need some beginning suggestions, i'm in searching process. Thank you.
3 件のコメント
FirefoxMetzger
2016 年 8 月 15 日
Is the function you are trying to generate always a mathmatical function? Further, is it allways polynomial?
Ozge Moral
2016 年 8 月 15 日
編集済み: Ozge Moral
2016 年 8 月 15 日
José-Luis
2016 年 8 月 15 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Operators and Elementary Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!