Re: retain the fit and remove the curve
- From: "Marjorie Berman" <marjorie@xxxxxxxxxxxxx>
- Date: Thu, 16 Oct 2008 11:53:02 -0400
Another approach might be to use "Generate-M File" in the "File" menu. You
could then see how the fit is calculated and plotted. You would need to
modify the generated file to plot only the fit.
"Pekka Kumpulainen" <pekka.nospam.kumpulainen@xxxxxxxxxxxxx> wrote in
message news:gd7cja$f8v$1@xxxxxxxxxxxxxxxxxxxxx
"S N RAY" <suryanarayana_gs@xxxxxxxxx> wrote in message
<gd72b6$jur$1@xxxxxxxxxxxxxxxxxx>...
A plot is made in Matlab using plot() command of some data and then using
the Basic curve fitting GUI in the graph a curve of some order of
polynomial is fitted to the curve.Now I wish to remove the original curve
retaining only the fit. I tried 'imsubtract' but to no help. How can this
be done ?
h = plot(.....); this will give you the handle to the line of the data.
The logical approach would be to delete the original line after the fit:
delete(h)
But for some reason this will also remove the fit (R2008b) (I really hate
these GUIs and the way MATLAB is more and more automagically doing stupid
things)
Anyway, this will work as a quick workaround:
set(h,'Visible','off') % hide the data
legend off % remove the legend
.
- References:
- retain the fit and remove the curve
- From: S N RAY
- retain the fit and remove the curve
- From: Pekka Kumpulainen
- retain the fit and remove the curve
- Prev by Date: plot matrix (surf?)
- Next by Date: New MuPAD discussion group
- Previous by thread: retain the fit and remove the curve
- Next by thread: Recursive Vectorization
- Index(es):
Relevant Pages
|