exporting data using xlswrite for each 24 hours?

dear all, by using xlswrite('DATA', DATA, 'output_data', sprintf('A%d')); i can export my DATA to excel sheet. Since,its is a part of real-time video analysing, i'd like to save data for each 24 hours, i mean after 24-hours it can automatically export to another excel file and so on.. can you help me please

댓글 수: 4

Abo - does your software already know when you have reached the 24 hours and so should write the data to file? Are you using a timer for this?
Abo
Abo 2016년 7월 11일
no, just using matlab. i think need to use my PC local time as time.
Right, but have you written your MATLAB code to use a timer that expires in 24 hours? Please provide more details including a brief description of what code you have written and what you need help with.
Abo
Abo 2016년 7월 11일
편집: Geoff Hayes 2016년 7월 11일
thank you, mu code is kind of real time video processing, it gets snapshot for a period of time, as shown here, i'd like to save data as excel for each 24 hours, i hope to make sense.
vid=videoinput('winvideo',1);
set (vid,'ReturnedColorspace','grayscale');
vid.FrameGrabInterval=1;
framesneeded=20;
start (vid)
% time1=datestr(now,'dd-mm-yyyy HH:MM:SS FFF');
while vid.FramesAcquired<=framesneeded
time1=datestr(now,'HHMMSS')
data=getsnapshot(vid);
level=graythresh (data);
bw=im2bw(data,.08);
...
..
DATA=[extracting some data];
xlswrite('DATA',DATA,time1);

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Standard File Formats에 대해 자세히 알아보기

질문:

Abo
2016년 7월 8일

편집:

2016년 7월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by