[15860] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: Paula Valdivia y Alvarado: sgi 8.1.16: matlab

daemon@ATHENA.MIT.EDU (Abby Fox)
Tue Mar 24 17:00:23 1998

To: paula@MIT.EDU
Cc: bugs@MIT.EDU
In-Reply-To: [15846]
Date: Tue, 24 Mar 1998 17:00:21 EST
From: Abby Fox <ajfox@MIT.EDU>

>What were you trying to do?
>	a user called olc about this. He was trying to use curvefit in matlab 5
>.1
>
>What's wrong:
>	curvefit expects to find nlsq.m which does not exist


Hi, Paula.

I took a look at the original OLC question and sent the following to
to the user.  If anyone wants to provide more detail, I'll look into
it further; otherwise, I'll assume it was a case of confusion...

--Abby

--------------------------
 
I've tried a quick example, and curvefit seems to be working in matlab
5.1, but if you can provide more detail about what you typed and the
exact error you received, we can investigate further.
 
A couple of notes:
 
1. nlsq is a private function in the Optimization Toolbox (meaning
it's visible to functions in /mit/matlab_v5.1/distrib/toolbox/optim,
but not otherwise).
 
2. The default curvefit function in matlab 5.1 is part of the
Optimization Toolbox (it returns best-fit coefficients), while the one
you may be familiar with from matlab 4.2 is a user-contributed M-file
designed to do plotting.  If you want the latter, you can still get to
it by specifying the full path, e.g.:
 
 >> help /mit/matlab_v5.1/distrib/toolbox/contrib/graphics/curvefit
 
but we can't guarantee that it's compliant with ver 5.1.
 
Hope this helps.
 
Abby Fox
Academic Computing
 



home help back first fref pref prev next nref lref last post