diff --git a/projects/project_shorttermpotentiation/Makefile b/projects/project_shorttermpotentiation/Makefile new file mode 100644 index 0000000..a7b3726 --- /dev/null +++ b/projects/project_shorttermpotentiation/Makefile @@ -0,0 +1,3 @@ +ZIPFILES= + +include ../project.mk diff --git a/projects/project_shorttermpotentiation/rawData/main.m b/projects/project_shorttermpotentiation/rawData/main.m new file mode 100644 index 0000000..2925c87 --- /dev/null +++ b/projects/project_shorttermpotentiation/rawData/main.m @@ -0,0 +1,34 @@ +clear all +close all + +data = load('Username_2019-05-22_001.mat'); + +IV_protnum = [25]; +STP_protnum = [26, 27, 28, 29, 30]; + +IV = sortData(data, IV_protnum); +STP = sortData(data, STP_protnum); +IV_steps = -90:10:50; + +save 'IV.mat' IV +save 'IV_steps.mat' IV_steps +save 'STP.mat' STP + +% for i = 1:length(STP) +% for j = 1:length(STP{i}) +% figure(j) +% hold on +% plot(STP{i}{j}(:,1),STP{i}{j}(:,2)) +% hold off +% end +% end +% +% for i = 1:length(IV) +% for j = 1:length(IV{i}) +% figure(j) +% hold on +% plot(IV{i}{j}(:,1),IV{i}{j}(:,2)) +% hold off +% end +% end + diff --git a/projects/project_shorttermpotentiation/rawData/sortData.m b/projects/project_shorttermpotentiation/rawData/sortData.m new file mode 100644 index 0000000..a1b237f --- /dev/null +++ b/projects/project_shorttermpotentiation/rawData/sortData.m @@ -0,0 +1,20 @@ +function C = sortData(data, protnums) + +names = fieldnames(data); +C = cell(1,length(protnums)); + +for i = 1:length(protnums) + idxvec = zeros(1,length(names)); + for j = 1:length(names) + idxvec(j) = strcmp(names{j}(1:10), ['Trace_1_', num2str(protnums(i))]); + end + + c = cell(1,sum(idxvec)); + idxvec = find(idxvec); + for j = 1:length(idxvec) + c{j} = data.(names{idxvec(j)}); + end + C{i} = c; +end + +