diff options
author | Jan Huwald <jh@sotun.de> | 2012-05-07 19:53:27 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2012-05-07 19:53:27 (GMT) |
commit | 00b209240138660db1ded3ef3870023964ce6e4e (patch) | |
tree | 8ffaec780b060bdc478929aa714b8af2ee760671 /code/matlab/analye-stdp-freq-dep.m |
Diffstat (limited to 'code/matlab/analye-stdp-freq-dep.m')
-rw-r--r-- | code/matlab/analye-stdp-freq-dep.m | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/code/matlab/analye-stdp-freq-dep.m b/code/matlab/analye-stdp-freq-dep.m new file mode 100644 index 0000000..85c4030 --- /dev/null +++ b/code/matlab/analye-stdp-freq-dep.m @@ -0,0 +1,12 @@ + +raw = load('synapse.destilled'); + +res = []; +for i=1:(floor(length(raw) / 200)), + row = raw(((i*200)-199):((i*200)-99),2)'; + res(i,:) = [mean(row), var(row)]; +end + +for i=1:length(res), + fprintf(2,'%d, %f, %f\n', int32(i), res(i,1), res(i,2)) +end
\ No newline at end of file |