Definition of Time
이전 댓글 표시
I have a file data with:
Column1: Year (2011)
Column2: Month (10)
Column3: Day (22)
Column4: Hour (10)
Column5: Minute (35)
Column6: Second (30)
These are "86400x1 double" so a lot of data.
I want to have a variable or another cell with TIME like:
YYYY.MM.DD HH.MM.SS (2011.10.22 10.35.30)
How could I concatenate or merge all elements?
I need to use it after that to find the DATE and TIME (X) in the database and to delete until the next (Y) value TIME. At the end I have to plot all and have an average of temperatures (The data has also some columns with temperatures)
Thank you
댓글 수: 3
Jan
2012년 3월 7일
I do not understand the input format. What is "these" in "these are 86400x1"? How does the file look like and what means "*another* cell"? And what exactly means "YYYY.MM.DD HH.MM.SS (2011.10.22 10.35.30)"? Do you want the 'YYYY...' string appear in the variable? And the parenthesis?
I suggest to use one of the standard date formats, see "help datestr".
Liviu
2012년 3월 7일
Liviu
2012년 3월 7일
채택된 답변
추가 답변 (1개)
Liviu
2012년 3월 8일
0 개 추천
댓글 수: 3
Jan
2012년 3월 8일
Please format your code as explained in the "Markup help" link on this page.
There is no reason to remove all loaded functions from the memory using "clear all". It takes a lot of time to re-import the M-files afterwards. Perhaps you want "clear variables", but even this is useless here.
Dr. Seis
2012년 3월 8일
At what point do you assign the data to "data"?
Liviu
2012년 3월 9일
카테고리
도움말 센터 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!