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
\ No newline at end of file
109
\ No newline at end of file
......@@ -2,7 +2,7 @@ function [offsets, drifts] = extractOffsetsDriftsFromSolved(pX)
%EXTRACTOFFSETSDRIFTSFROMSOLVED Summary of this function goes here
% Detailed explanation goes here
soundsourceCount = (length(pX) - 4) / 2;
soundsourceCount = (length(pX) - 3) / 2;
offsets = NaN(soundsourceCount + 1, 1);
drifts = NaN(soundsourceCount + 1, 1);
......@@ -10,10 +10,9 @@ drifts = NaN(soundsourceCount + 1, 1);
offsets(1) = pX(end - 1);
drifts(1) = pX(end);
for i = 2:soundsourceCount + 1
startIndex = (i - 1) * 2 + 3;
offsets(i) = pX(startIndex);
drifts(i) = pX(startIndex + 1);
for i = 2:2:(soundsourceCount * 2)
offsets(i/2 + 1) = pX(i);
drifts(i/2 + 1) = pX(i + 1);
end
end
......
......@@ -89,7 +89,7 @@ for i = 1:length(fnames)
end
a = [ ...
soundVelocity, distances, aCore, ones(size(daysSinceFloatStart)), daysSinceFloatStart ...
distances, aCore, ones(size(daysSinceFloatStart)), daysSinceFloatStart ...
];
% 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