필터 지우기
필터 지우기

Add multiple timestamps in the excel file first column

조회 수: 1 (최근 30일)
Zargham Ali
Zargham Ali 2015년 7월 19일
댓글: Muhammad Usman Saleem 2015년 7월 21일
Hi I am using xlswrite to add string of timestamps to the first column of excel file but it shows me #######.
How to correct this?
I would be very grateful for your help.
Regards

채택된 답변

Muhammad Usman Saleem
Muhammad Usman Saleem 2015년 7월 19일
편집: Jan 2015년 7월 19일
##### - Sometimes referred to as “Railroad tracks”, this error can be caused by several conditions:
  • A number in a cell is too wide for the cell to display it.
  • The formula in the cell produces a result that is too wide for the cell.
  • There is a negative number in the cell that has been formatted for dates or times. Dates and times in Excel must be positive values.
Solution:
  • Widen the column containing the problem cell.
  • Change the format of the problem cell to something other than a date/time format.
  • Correct the negative number in a date/time formatted cell.
  댓글 수: 4
Zargham Ali
Zargham Ali 2015년 7월 20일
%start time stime=datenum(2012,1,2,0,0,0) %end time etime=datenum(2012,1,2,23,00,00) %length of time step (1D, 3min in this case) delta=datenum(0,0,0,1,0,0) %ymdhms for nw=stime:delta:etime clox=cellstr(datestr(nw))
end xlswrite('MERRA.xlsx',clox,'A2:A24');
i am trying this code but it always shows me the end time that is 2012 1 2 23:00 in excel file but in command window of MATLAB the output increases the time hourly from 1 till 23
Muhammad Usman Saleem
Muhammad Usman Saleem 2015년 7월 21일
please format your codes and give brief description

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by