Normalize column that contains a date MATLAB
I want to normalize a matrix, but if a column contains dates moth/day/year, how can 开发者_如何学JAVAI normalize, is it better to get rid of it?
FWIW, consider:
> datestr(datenum(2011, 2, 28, 1, 2, 3))
ans= 28-Feb-2011 01:02:03
> datestr(floor(3600* datenum(2011, 2, 28, 1, 2, 3))/ 3600)
ans= 28-Feb-2011 01:02:00
So, now based on datenum
you may 'normalize' as it suits best for you.
精彩评论