TEAP (Toolbox for Emotion Analysis using Physiological Signals) doc
Signal_plot_pts.m
Go to the documentation of this file.
1 %This file is part of TEAP.
2 %
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.
7 %
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.
12 %
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/>.
15 %
16 %> @file Signal_plot_pts.m
17 %> @brief Plots some (xval, yval) points on the graph. You have to use this function if
18 %> your xvals are in the frame domain (aka not secs like the graph produced by
19 %> @c Signal_plot. This function just divides xval by @c Signal__get_samprate(Signal).
20 %> HOLDs ON the graph, so you don't have to do it yourself ;)
21 %
22 %> @param Signal: your signal
23 %> @param xvals: the x values of your points. IN FRAMES (not secs !)
24 %> @param yvals: the y values
25 %> @param props: plot properties (like 'r*')
26 %
27 %> @author Copyright Frank Villaro-Dixon, 2014
28 function Signal_plot_pts(Signal, xvals, yvals, props)
29 
30 samprate = Signal__get_samprate(Signal);
31 
32 xvals = xvals / samprate;
33 
34 hold on;
35 plot(xvals, yvals, props);
36 hold off;
37 
Signal__get_samprate
function Signal__get_samprate(in Signal)
Signal_plot_pts
function Signal_plot_pts(in Signal, in xvals, in yvals, in props)
Signal_plot
function Signal_plot(in Signal, in startT, in endT)