|
"Kirk" <kwythers.nospam@umn.edu> wrote in message <hnln8m$7lu$1@fred.mathworks.com>...
> I am trying to create of vector of months. Ex:
>
> Jan
> Feb
> Mar
> ...
>
> I started by creating a numerical representation of monrths 1:12, of the appropriate length using repmat:
>
> t = repmat(1:1:12,1,1200)';
>
> From here it seems that I should be able to use datestr() to convert 1 to Jan, 2 to Feb, and so on. However, I seem to be at an impasse. Any ideas?
Months = 1:1:24
datestr(datenum(2000,Months,1),'mmm')
hth
Jos
|