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!