Matlab help .. problems in finding integrals
hi all,
i need to find the integral of a complicated function..using int,matlab says it cannot find it..tried using quad but for that i may have to send some parameters to the function..does neone knows how to send parameters when using quad..
as in quad(@myfun,a,b,parameters..)
whr a b are limits..and parameters are some of which i have to send...
ne help???
i need to find the integral of a complicated function..using int,matlab says it cannot find it..tried using quad but for that i may have to send some parameters to the function..does neone knows how to send parameters when using quad..
as in quad(@myfun,a,b,parameters..)
whr a b are limits..and parameters are some of which i have to send...
ne help???
0
Comments
if you want more help, we need more details.
Q = quad(f,lowerbound,upperbound);
if you put both of those inside your for loops, it should do what you'd expect it to. f(x) = i*j*x; F(x) = i*j*x^2/2
the function i wrote to calculate the quantitiy to be integrated
it gives me this error,''error in program at line 77,then the line where r was used in an equation ,, Reference to a cleared variable r'',,,r being the variable of integration..this comes even when im running the program for just one value of i and j , can u help with this
UOTE=shwaip]f = @(x)i*j*x;
Q = quad(f,lowerbound,upperbound);
if you put both of those inside your for loops, it should do what you'd expect it to. f(x) = i*j*x; F(x) = i*j*x^2/2[/QUOTE]
[php] [/php]