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 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
20 %> HOLDs ON the graph, so you don
't have to do it yourself ;)
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*
')
27 %> @author Copyright Frank Villaro-Dixon, 2014
28 function Signal_plot_pts(Signal, xvals, yvals, props)
30 samprate = Signal__get_samprate(Signal);
32 xvals = xvals / samprate;
35 plot(xvals, yvals, props);