Home > utility > getLineStyle.m

getLineStyle

PURPOSE ^

getLineStyle: Get line style from a rotating palette

SYNOPSIS ^

function lineStyle=getLineStyle(index)

DESCRIPTION ^

 getLineStyle: Get line style from a rotating palette
    Usage: lineStyle=getLineStyle(index)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function lineStyle=getLineStyle(index)
0002 % getLineStyle: Get line style from a rotating palette
0003 %    Usage: lineStyle=getLineStyle(index)
0004 
0005 % Roger Jang, 20071020
0006 
0007 if nargin<1, index=1; end
0008 
0009 allLineStyle={'-', '--', ':', '-.'};
0010 lineStyle=allLineStyle{mod(index-1, length(allLineStyle))+1};

Generated on Tue 01-Jun-2010 09:50:34 by m2html © 2003