plotsample displays some noisy sample data. Try to fit the data with
showfit or selectfit, following the instructions given in the command
window. The sample data is chosen randomly among the 9 predefined plots
described below.
plotsample is also available from the item 'Plot Sample' of the EzyFit
menu (see efmenu).
plotsample(OPT) specifies the sample plot:
'power': noisy power law
'linear': noisy data to be fitted by a linear function
'damposc': damped oscillation
'cste': noisy constant
'exp': noisy exponential decay
'hist': histogram of 1000 realizations of a random variable
'hist2': histogram with two gaussian peaks.
'powco': noisy power law with an exponential cut-off.
'poly2': 3 curves to be fitted by a 2nd order polynomial fit
plotsample(N) specifies the number of the sample plot (1 to 8).
plotsample(...,'fit') also displays the fit.
[X,Y] = plotsample(...) also returns the sample data (this is
equivalent to plotsample; [X,Y] = pickdata;).
Example:
plotsample power fit
(it shows a power law and fits it).
See Also
showfit, selectfit, fit, pickdata, efmenu.