Skip to content
Snippets Groups Projects
Commit 77f607f4 authored by leprob001's avatar leprob001
Browse files

Adjusted save.rfc function.

  Now creates a table with 12 chars as column width in the data section.
parent 6d0737cc
Branches
Tags
No related merge requests found
......@@ -119,19 +119,10 @@ headerString = strjoin(header, newline);
%% COLLECT DATA STRING
for i = 1:size(pData, 1)
line = { ...
num2str(pData(i, 1), '%2d') ...
num2str(pData(i, 2), '%3d') ...
num2str(pData(i, 3), '%8.2f') ...
num2str(pData(i, 4), '%6.3f') ...
num2str(pData(i, 5), '%6.1f') ...
num2str(pData(i, 6), '%9.3f') ...
num2str(pData(i, 7), '%8.3f') ...
num2str(pData(i, 8), '%9.2f') ...
num2str(pData(i, 9), '%7.2f') ...
num2str(pData(i, 10), '%7.2f')
};
dataString = [dataString strjoin(line) newline];
dataString = [ ...
dataString ...
sprintf('%12d%12d%12.2f%12.3f%12.1f%12.3f%12.3f%12.2f%12.2f%12.2f\n', pData(i, :)) ...
];
end
%% IF NO TRAJECTORY AVAILABLE
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment