How can I integrate a function that has more than 1 input?
Show older comments
This question might be very simple but I'm very frustrated that I cant make this work. I'm trying to integrate a function that is called like this:
d=dsACst(x,zeta,nu)
where zeta and nu are known constants and I want to integrate the function using x as the variable, like this
fun=@(x)dsACst
q=integrate(fun,0,Inf)
but I get the following error:
Not enough input arguments.
Error in dsACst (line 25)
pdf=o_tpdf(x,nu);
I can tell that when the integral is calculated the values of zeta and nu are not being read (or used) How can I fix this problem? Or maybe I'm doing something else wrong.
1 Comment
Gina Torres
on 12 Dec 2017
Accepted Answer
More Answers (0)
Categories
Find more on Functional Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!