Help needed for curve fitting,i need to plot a equation T=k*I^n in matlab

Status
Not open for further replies.

singh1

Newbie level 2
Joined
Jul 15, 2011
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,294
Hi, I need to implement a equation for a dc motor in matlab. The eq is T=K*I^n . T is torque and I is current . I have a set of values as inputs for T and I, so, i need to find K and n at the output. Curve fitting has to be used for it.
I want the program code for it in matlab which could generate a curve and give K,n as the output.

Eagerly waiting for reply!!!
Thanks in anticipation!!!!
 

You can use Least mean square fitting algorithm

Search for LMS algorithm in matlab

also I think poly2fit is there in matlab toolbox which you can make use of

Thanks & Regards
M Kalyansrinivas
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…