function mon=getmonth returns a cell array of months, {'JAN','FEB',etc} Michael Loh
0001 function [MON mon Mon] =getmonth(ii) 0002 0003 % function mon=getmonth 0004 % 0005 % returns a cell array of months, {'JAN','FEB',etc} 0006 % 0007 % Michael Loh 0008 0009 0010 MON={'JAN','FEB','MAR','APR','MAY','JUN','JUL',... 0011 'AUG','SEP','OCT','NOV','DEC'}; 0012 0013 mon={'jan','feb','mar','apr','may','jun','jul',... 0014 'aug','sep','oct','nov','dec'}; 0015 0016 Mon={'Jan','Feb','Mar','Apr','May','Jun','Jul',... 0017 'Aug','Sep','Oct','Nov','Dec'}; 0018 0019 if(~exist('ii')) 0020 return 0021 else 0022 MON = MON(ii); 0023 mon = mon(ii); 0024 Mon = Mon(ii); 0025 end 0026 return