error:Cannot display summaries of variables with more than 524288 elements.

Hi, I am a user of student version. I need to convert GPS time of week in seconds to HH:MM:SS form with date. Seconds data is in the form 364080 364110 364140 364170 as a structure array field A.GPSTOW....entire data is of date 17'March 2015. Used datestr(seconds(A.GPSTOW),'HH:MM:SS'). It is resulting time in character array. When trying to open the srtructure field having these time strings error 'Cannot display summaries of variables with more than 524288 elements' is shown. When tested in command window the current date aling with converted time is showm But I want 17March 2015 there not the current date.
Also used 'datetime' function, but unsuccessful. I need the result in the form 17-Mar-2015 10:20:30 without any single quotes. Data has almost a 350000 rows. Can anyone help please.

 채택된 답변

Lakshmi Chodavarapu
Lakshmi Chodavarapu 2019년 10월 28일
Solved this myself like this:
hrs=floor(mod(A_org.GPSTOW,86400)./(60*60));
min=floor(mod(mod(A_org.GPSTOW,86400),(60*60))./60);
sec=mod(mod(mod(A_org.GPSTOW,86400),(60*60)),60);
A_org.UT=datetime(2015,03,17,hrs,min,sec,'F','MM/dd/uuuu HH:mm:ss');

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Time Series Objects에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by