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

46 views (last 30 days)
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.

Accepted Answer

Lakshmi Chodavarapu
Lakshmi Chodavarapu on 28 Oct 2019
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');

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by