Prev: Removing a data cursor programmatically
Next: How to detect an almost circular object in an image?
From: Kirk on 15 Mar 2010 12:29 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?
From: Jos (10584) on 15 Mar 2010 16:33 "Kirk" <kwythers.nospam(a)umn.edu> wrote in message <hnln8m$7lu$1(a)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
|
Pages: 1 Prev: Removing a data cursor programmatically Next: How to detect an almost circular object in an image? |