From: <sch...@us...> - 2010-11-17 12:03:53
|
Revision: 7927 http://octave.svn.sourceforge.net/octave/?rev=7927&view=rev Author: schloegl Date: 2010-11-17 12:03:47 +0000 (Wed, 17 Nov 2010) Log Message: ----------- support of styling formats (similar to plot) Modified Paths: -------------- trunk/octave-forge/extra/NaN/inst/cdfplot.m Modified: trunk/octave-forge/extra/NaN/inst/cdfplot.m =================================================================== --- trunk/octave-forge/extra/NaN/inst/cdfplot.m 2010-11-17 09:12:22 UTC (rev 7926) +++ trunk/octave-forge/extra/NaN/inst/cdfplot.m 2010-11-17 12:03:47 UTC (rev 7927) @@ -1,15 +1,22 @@ -function [h,stats] = cdfplot(X) +function [h,stats] = cdfplot(X, varargin) % CDFPLOT plots empirical commulative distribution function % % cdfplot(X) -% h = cdfplot(X) +% cdfplot(X, FMT) +% cdfplot(X, PROPERTY, VALUE,...) +% h = cdfplot(...) % [h,stats] = cdfplot(X) % -% h is the handle to the cdf curve -% stats is a struct containing various summary statistics -% like mean, std, median, min, max, etc. +% X contains the data vector +% (matrix data is currently changed to a vector, this might change in future) +% FMT,PROPERTY,VALUE +% are used for formating; see HELP PLOT for more details +% h graphics handle to the cdf curve +% stats +% a struct containing various summary statistics including +% mean, std, median, min, max. % -% see also: ecdf, median, statistics, hist2res +% see also: ecdf, median, statistics, hist2res, plot % % References: @@ -37,7 +44,7 @@ cdf = cumsum(his.H,1) ./ sum(his.H,1); ix1 = ceil ([1:2*size(his.X,1)]'/2); ix2 = floor([2:2*size(his.X,1)]'/2); -hh = plot (his.X(ix1), [0; cdf(ix2)]); +hh = plot (his.X(ix1), [0; cdf(ix2)], varargin); if nargout>0, h = hh; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |