Skip to content
Snippets Groups Projects
Commit 6aae5e61 authored by leprob001's avatar leprob001
Browse files

Removed soundvelocity from A matrix.

parent 797b10be
No related branches found
No related tags found
No related merge requests found
108 109
\ No newline at end of file \ No newline at end of file
...@@ -2,7 +2,7 @@ function [offsets, drifts] = extractOffsetsDriftsFromSolved(pX) ...@@ -2,7 +2,7 @@ function [offsets, drifts] = extractOffsetsDriftsFromSolved(pX)
%EXTRACTOFFSETSDRIFTSFROMSOLVED Summary of this function goes here %EXTRACTOFFSETSDRIFTSFROMSOLVED Summary of this function goes here
% Detailed explanation goes here % Detailed explanation goes here
soundsourceCount = (length(pX) - 4) / 2; soundsourceCount = (length(pX) - 3) / 2;
offsets = NaN(soundsourceCount + 1, 1); offsets = NaN(soundsourceCount + 1, 1);
drifts = NaN(soundsourceCount + 1, 1); drifts = NaN(soundsourceCount + 1, 1);
...@@ -10,10 +10,9 @@ drifts = NaN(soundsourceCount + 1, 1); ...@@ -10,10 +10,9 @@ drifts = NaN(soundsourceCount + 1, 1);
offsets(1) = pX(end - 1); offsets(1) = pX(end - 1);
drifts(1) = pX(end); drifts(1) = pX(end);
for i = 2:soundsourceCount + 1 for i = 2:2:(soundsourceCount * 2)
startIndex = (i - 1) * 2 + 3; offsets(i/2 + 1) = pX(i);
offsets(i) = pX(startIndex); drifts(i/2 + 1) = pX(i + 1);
drifts(i) = pX(startIndex + 1);
end end
end end
......
...@@ -89,7 +89,7 @@ for i = 1:length(fnames) ...@@ -89,7 +89,7 @@ for i = 1:length(fnames)
end end
a = [ ... a = [ ...
soundVelocity, distances, aCore, ones(size(daysSinceFloatStart)), daysSinceFloatStart ... distances, aCore, ones(size(daysSinceFloatStart)), daysSinceFloatStart ...
]; ];
% remove all NaN from matrix % remove all NaN from matrix
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment