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

33 ビュー (過去 30 日間)
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 件)

カテゴリ

Help Center および File ExchangeDates and Time についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by