Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

quad command and function parameters

Status
Not open for further replies.

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?
 
Replies continue below

Recommended for you

Status
Not open for further replies.

Part and Inventory Search

Sponsor