Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: fiting curve question....
Replies: 4   Last Post: Aug 16, 1996 7:17 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Wladimir Shukowsky

Posts: 30
Registered: 12/7/04
Re: fiting curve question....
Posted: Aug 13, 1996 1:45 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Assuming your data is stored in vectors x and y:

x=x(:);
y=y(:);
g = [x.^2, ones(size(x))];
p = g\y;
a = p(1)
c = p(2)


+==Wladimir Shukowsky=====wladimir@iag.usp.br==+
| Instituto Astronomico e Geofisico - USP |
| Sao Paulo SP / Brazil |
+==Tel: +55-11-8184776====Fax: +55-11-8185034==+


On Tue, 13 Aug 1996, Euh ? wrote:

>how can i fit a curve with the eq. "ax^2+c" in matlab ?
>
>







Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.