For Programmers: Free Programming Magazines  


Home > Archive > Matlab > December 2005 > Y as a matrix in nlinfit









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Y as a matrix in nlinfit
mishra

2005-12-18, 7:06 pm

Hi all,

I have trouble using nlinfit . In nlinfit if the Y is a vector then it
works properly, but when I feed in Y as a matrix (say 3 coulmns) then
it is showing an error

"??? Error using ==> nlinfit Requires a vector second input argument."

I wanted Y to be a matrix. As I have 3 different observed
values(replicates) in 3 coulmns and I want that nlinfit should estimate
the parameter based on the predicted value from the model function and
the observed values form Y. Can it be done. If so how, otherwise is
there any other toolbox for nonlinear curve fitting and parameter
estimation which can accept Y as a matrix.

Thnaks,
Mishra.

John D'Errico

2005-12-18, 7:06 pm

In article <1134930611.269589.179270@g14g2000cwa.googlegroups.com>, "mishra" <mishradh@gmail.com> wrote:

> I have trouble using nlinfit . In nlinfit if the Y is a vector then it
> works properly, but when I feed in Y as a matrix (say 3 coulmns) then
> it is showing an error
>
> "??? Error using ==> nlinfit Requires a vector second input argument."
>
> I wanted Y to be a matrix. As I have 3 different observed
> values(replicates) in 3 coulmns and I want that nlinfit should estimate
> the parameter based on the predicted value from the model function and
> the observed values form Y. Can it be done. If so how, otherwise is
> there any other toolbox for nonlinear curve fitting and parameter
> estimation which can accept Y as a matrix.


So either average your replicates, or reshape it into a problem
with 3*n data points. WTP?

HTH,
John D'Errico


--
The best material model of a cat is another, or preferably the same, cat.
A. Rosenblueth, Philosophy of Science, 1945

Those who can't laugh at themselves leave the job to others.
Anonymous
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com