Lagomorph
Electrical
- Aug 10, 2005
- 9
Hi,
I was just wondering how I would go about performing a quad operation on a function that I need to enter a parameter into.
For example, if the M file is something like:
function F = myfun(x,x2);
F = x.^2+x2.^3;
and I need to substitute a number for x2 before I integrate and then integrate with respect to x, how would I do that?
I was just wondering how I would go about performing a quad operation on a function that I need to enter a parameter into.
For example, if the M file is something like:
function F = myfun(x,x2);
F = x.^2+x2.^3;
and I need to substitute a number for x2 before I integrate and then integrate with respect to x, how would I do that?