annotate src/Scripts/plot_strobes.m @ 195:0db637cac96b
- Added as-yet-unfinished support for a proper configuraiton file format
- Added a couple of pythin scripts to generate HMM configuration files
- Variable name changes and other cosmetic things
- Added the option for the noise generation to do pink noise (untested)
author |
tomwalters |
date |
Thu, 12 Aug 2010 11:28:11 +0000 |
parents |
9122efd2b227 |
children |
|
rev |
line source |
tomwalters@32
|
1 function plot_strobes(nap, strobes, frame_no)
|
tomwalters@32
|
2 n = squeeze(nap(frame_no,:,:));
|
tomwalters@32
|
3 s = strobes(frame_no,:);
|
tomwalters@32
|
4 figure;
|
tomwalters@32
|
5 mesh(n, 'MeshStyle', 'row', 'EdgeColor','black');
|
tomwalters@32
|
6 view([0.01 80]);
|
tomwalters@32
|
7 hold on;
|
tomwalters@32
|
8 for ch = 1:size(n, 1);
|
tomwalters@32
|
9 st = s{1,ch};
|
tomwalters@32
|
10 for i=1:length(st)
|
tomwalters@32
|
11 if (st(i) > 0)
|
tomwalters@32
|
12 plot3(st(i),ch,n(ch, st(i)) ,'Marker','o','MarkerFaceColor',[1 0 0],'MarkerEdgeColor','w','MarkerSize',6);
|
tomwalters@32
|
13 end
|
tomwalters@32
|
14 end
|
tomwalters@32
|
15 end
|
tomwalters@32
|
16 |