I have a .txt file with two columns, the first with dates in the format yyyy-mm-dd and the second with prices such as '42.23'. However, when I load the .txt file into matlab it only recognizes the year.
load data.txt
>> data(1,1)
ans =
2005
or
>> data(1,:)
ans =
1.0e+03 * 2.0050 0.0422
I need matlab to see the entire date for plotting purposes. Does anyone know how I can fix this?
Best Answer