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: Curve fitting using fminsearch
Replies: 1   Last Post: Oct 14, 2013 9:43 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Alan Weiss

Posts: 1,430
Registered: 11/27/08
Re: Curve fitting using fminsearch
Posted: Oct 14, 2013 9:43 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 10/11/2013 2:19 PM, wrote:
> I have a single column vector of data (DATA1) and would like to create a second column vector of data (NEW_DATA) that is a sine function of DATA1. Can this be down using fminsearch? That is, the NEW_DATA would be a column vector (based on a sine function) that would basically minimize the difference from DATA1-NEW_DATA. If so, can someone help with the steps involved. I tried looking online and it seems like I would create a new m.file, but don't even know where to begin.
> This is literally all I have so far:
> DATA1=DATA1 (:,1)%this is my data I would like to "fit"

Perhaps this example will help:

Alan Weiss
MATLAB mathematical toolbox documentation

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.