Skip to content

Commit

Permalink
Replace last element of file with missing to improve plot where dat…
Browse files Browse the repository at this point in the history
…a is missing
  • Loading branch information
mfacchinelli committed Feb 1, 2024
1 parent ebf0bd1 commit c6d80e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/analyze/+mag/@IMAPTestingAnalysis/loadScienceData.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ function loadScienceData(this, primaryMetaData, secondaryMetaData)
secondary = ps.apply(secondary, smd);
end

% Remove last data point, to avoid continuous lines when data is
% missing.
primary{end, ["x", "y", "z"]} = missing();
secondary{end, ["x", "y", "z"]} = missing();

%% Convert to timetable

primaryData = vertcat(primaryData, table2timetable(primary, RowTimes = "t")); %#ok<AGROW>
Expand Down

0 comments on commit c6d80e0

Please sign in to comment.