Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions getParameters.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
%parameters for a given trial where each row is an individual animal and
%each column is the chosen parameter on each trial

<<<<<<< HEAD
=======
mouseNames = fieldnames(dataSet);

allParameters = {};
Expand All @@ -21,6 +23,7 @@
for i = 1:length(allParameters)
parameters(i,1:length(allParameters{1,i})) = allParameters{1,i};
end
>>>>>>> upstream/master

end

17 changes: 17 additions & 0 deletions splitData.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
function [ control, test ] = splitData( dataSet )
%SPLITDATA splits a standard AutonoMouse data set into two structures, one
%for control animals, one for test animals based on NMDA parameter
<<<<<<< HEAD
names = fieldnames(dataSet);
disp(dataSet.(names{1}))
field_names = fieldnames(dataSet.(names{1}));
disp(field_names)
control = struct();
test = struct();
for i =1:numel(names)
NMDA = dataSet.(names{i}).NMDA;
if NMDA == 0
control.(names{i})=dataSet.(names{i});
else
test.(names{i}) = dataSet.(names{i});
end
end
=======

control = struct();
test = struct();
Expand All @@ -19,3 +35,4 @@

end

>>>>>>> upstream/master