Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

nlinfit problems for matlab

Status
Not open for further replies.

sbomb

Newbie level 2
Joined
Oct 25, 2006
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,294
nlinfit matlab

I'm trying to do a nonlinear regression with nlinfit for matlab...I keep getting errors with wrong matrix dimensions and also wrong uses of my function...so I experimented with the simplest values to see what I was doing wrong:

Independents= [1 2;3 4]
Dependents = [5;6]
coefficients = [7;8]

yhat = myfun(Independents,coefficients)

%myfun is a function that multiplies matrix Independents by vector coefficients


[Beta, r]=nlinfit(A,B,yhat,coefficients)

With these I still get the same errors...I'm not sure what I'm doing wrong. Can anyone help?
 

matlab nlinfit example

what is nlinfit? is it matlab function?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top