dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: curve fitting in matlab

  1. #1
    Join Date
    Jul 2017
    Posts
    1

    curve fitting in matlab

    Hello, I have a set of data points that I would like to match with the following model: y = A +B/x^2 + C/x^4, where A, B, and C are the constants I want Matlab to figure out. Can I do this?

  2. #2
    Join Date
    Dec 2006
    Posts
    74

    Re: curve fitting in matlab

    Quote Originally Posted by lryan2139 View Post
    Hello, I have a set of data points that I would like to match with the following model: y = A +B/x^2 + C/x^4, where A, B, and C are the constants I want Matlab to figure out. Can I do this?
    This resembles a linear regression problem (statistics), so yes. However, depending on your dataset, running a regression on 1/x^n might give a very poor fit.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)