I want to use the following vector as loop vector in matlab:
year = ['JAN';'FEB';'MAR';'APR';'MAY';'JUN';'JUL';'AUG';'SEP';'OCT';'NOV';'DEC'];
The loop is
for i = year
%Do something
i
end
Unfortunately i is only one sign, and not three, i.e. I am expecting an output from the above as
JAN
FEB
MAR
APR
.
.
.
but I get only
J
F
M
A
M
.
.
.
How can I change that? Or should I rather use a look-up-table, and loop over a vector from 1 to 12?