show just one curve
Show older comments
Hi. Im using GUIDE to create axes component that I then plot raw data to. I want to also see a smoothing function superimposed. I use csaps(x,y,p) where p is the smoothing parameter.
Here is my code that plots several smoothing curves at once
axes(handles.axes1);
fnplt(csaps(x1,y1,1),1,'k--')
fnplt(csaps(x1,y1,0.8),1,'r:')
fnplt(csaps(x1,y1,0.6),1,'m:')
How can I plot the smoothing curves just one at a time with only one showing.
Answers (1)
Sean de Wolski
on 12 May 2011
Use
cla
to clear the old stuff and replot only what you want.
3 Comments
Jason
on 12 May 2011
Sean de Wolski
on 12 May 2011
You couldn't just replot x/y?
Jason
on 12 May 2011
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!