Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • 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
Joined
Aug 10, 2005
Messages
9
Location
US
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?
 
Nevermind, figured it out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top