1 %This file is part of TEAP.
3 %TEAP is free software: you can redistribute it and/or modify
4 %it under the terms of the GNU General Public License as published by
5 %the Free Software Foundation, either version 3 of the License, or
6 %(at your option) any later version.
8 %TEAP is distributed in the hope that it will be useful,
9 %but WITHOUT ANY WARRANTY; without even the implied warranty of
10 %MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 %GNU General Public License
for more details.
13 %You should have received a copy of the GNU General Public License
14 %along with TEAP. If not, see <http://www.gnu.org/licenses/>.
17 %> @brief Plots a bulk signal:
for each signal of the bulk signal, creates a figure and
18 %> displays the signal
20 %> @param BulkSig the bulk signal
21 %> @param title the optional title
24 %Copyright Frank Villaro-Dixon, 2014
28 if(size(BulkSig, 2) ~= 1)
29 warning([
'Displaying all the epochs (=' num2str(size(BulkSig, 2))
')']);
30 for i = [1:size(BulkSig, 2)]
31 title = [
'Epoch ' num2str(i)];
42 nsigs = size(Signals);
43 nsigs = nsigs(1); %the number of signals we have
45 nsubplots = ceil(sqrt(nsigs)); %The number of subplots we have. Not efficient…
48 title =
'Bulk signal';
51 figure(
'name', title);
54 SignalStr = Signals(isig, :);
56 subplot(nsubplots, nsubplots, isig);