The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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:

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

| 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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.