Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

How to create a non linear function in matlab

Status
Not open for further replies.

martinmistere

Electrical
Jun 1, 2007
1
Hi i want to know how i can create a non linear function in matlab.
I've seen in internet that someone use the
f=inline('x+2')
but when i've tried this metod i wasn't be able to make elementar operation on two functions.
For example if i
f=inline('x+2')
and
g=inline('x+3')
how can i make g+f?

Then i have another question always on this argument.
I've tried to memorize the non linear function in a excel file and it returns me 2 "matrix" the first one with all the linear elements and a NaN in the position of the non linear
the second matrix instead gives me the non linear.
is there another way more simply to memorize this information on matlab?
Tnx for replies
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor