Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Hi! How can I extract from the sp3data file just the lines that starts with the *. I need those days in matrix and after that to transform the dates in julian dates. I need the lines to be " 2011-04-19 0:00; 2011-04-19 0:15 and so on. Thank you

1 ビュー (過去 30 日間)
gblmtc
gblmtc 2017 年 12 月 9 日
終了済み: MATLAB Answer Bot 2021 年 8 月 20 日
you can see what I obtain with this code:
fmt=['*' repmat('%f ',1,8)];
fid=fopen('sp3data.txt');
PG_timp=[];
while ~feof(fid)
l=fgetl(fid); % read a record
if strfind(l,'*')
PG_timp=[PG_timp; cell2mat(textscan(l,fmt,'collectoutput',1))];
end
end
fid=fclose(fid);

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by