Added selectDATA command to Java client and modified MATLAB client to use it.

This commit is contained in:
Jason Watkins
2015-04-20 10:41:00 -07:00
parent fd96966911
commit 3ad2bb76cb
3 changed files with 56 additions and 27 deletions

View File

@@ -46,3 +46,12 @@ end
%% Get data
result.raw = socket.readDATA();
%% Format data
rows = (length(result.raw) - 5) / 9;
result.h = zeroes(rows);
for i=1:rows
j = 6 + (i - 1) * 9;
result.h(i) = result.rows(j);
result.d = [result.d; result.rows((j+1):(j+9))];
end