


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

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};