Home > . > cumplot.m

cumplot

PURPOSE ^

function h =cumplot(x)

SYNOPSIS ^

function h = cumplot(x);

DESCRIPTION ^

function h =cumplot(x)
 Copyright (C) 2005 Marco Ratto

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function h = cumplot(x);
0002 %function h =cumplot(x)
0003 % Copyright (C) 2005 Marco Ratto
0004 
0005 
0006 n=length(x);
0007 x=[-inf; sort(x); Inf];
0008 y=[0:n n]./n;
0009 h0 = stairs(x,y);
0010 grid on,
0011 
0012 if nargout,
0013     h=h0;
0014 end

Generated on Fri 16-Jun-2006 09:09:06 by m2html © 2003