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: fit into str
Replies: 5   Last Post: Jan 23, 2013 10:33 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
itamar luzon

Posts: 6
Registered: 5/7/12
Re: fit into str
Posted: Jan 23, 2013 10:33 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"itamar luzon" wrote in message <kdovck$q11$1@newscl01ah.mathworks.com>...
> "Steven_Lord" <slord@mathworks.com> wrote in message <kdotia$ihl$1@newscl01ah.mathworks.com>...
> >
> >
> > "itamar luzon" <itamar.luzon@mail.huji.ac.il> wrote in message
> > news:kdo4lh$j2v$1@newscl01ah.mathworks.com...

> > > Hi,
> > > does anyone know how to get the fittedmodel (fitresult) into string?
> > > mean : x=0:0.01:2*pi;
> > > y=sin(x+rand(1,length(x))/2);
> > > cftool(x,y); %I did a Fourier1 fit
> > > fittedmodel = % I want to get this data into text so i could show it on my
> > > figure in a textbox
> > > General model Fourier1:
> > > fittedmodel(x) = a0 + a1*cos(x*w) + b1*sin(x*w)
> > > Coefficients (with 95% confidence bounds):
> > > a0 = -0.0009963 (-0.009037, 0.007044)
> > > a1 = 0.241 (0.2188, 0.2633)
> > > b1 = 0.9605 (0.947, 0.974)
> > > w = 1.003 (0.9968, 1.009)
> > >
> > > % and i don't wan't to write each field by it's own, I want all in one
> > > % so I clould do it to other function as well

> >
> > Take a look at the EVALC function. You could also extract each piece using
> > various methods on the object, like COEFFNAMES, COEFFVALUES, CONFINT, and
> > FORMULA. This would allow you to customize your display (say if your user
> > asked for 90% confidence bounds instead of 95% bounds.) You can see a list
> > of most of the methods available for curve and surface fit objects on this
> > documentation page:
> >
> > http://www.mathworks.com/help/curvefit/sfit.html
> >
> > --
> > Steve Lord
> > slord@mathworks.com
> > To contact Technical Support use the Contact Us link on
> > http://www.mathworks.com

>
> Hi Steve Lord,
> thanks,
> "evalc(cf)" is what that I was looking for
> Itamar


sorry, "text1=evalc('cf')" , if anyone else is going to look for it...



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.