How can I create a ''fun=@x...'' function for integration by multipling ''fun= @x...'' functions that consists of the originals funs subarguments?
古いコメントを表示
I would like to illustrate the following code but an error occurs: this code works: fun=@(x)(exp(-hlpexpvar.*x)).*(1-(x./univar(1)))
but how can I do something like this:
funone=@x exp(-hlpexpvar.*x)
funtwo=@x 1-(x./univar(1))
fun= @x funone.*funtwo
I would like to thank you in advance for any kind of help to this problem.
採用された回答
その他の回答 (1 件)
chaman lal dewangan
2018 年 3 月 12 日
0 投票
Thanks, I understood how to use "fun".
カテゴリ
ヘルプ センター および File Exchange で Numerical Integration and Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!