IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
draw_stdhachure.m
Go to the documentation of this file.
1 %>@ingroup graphicsapi
2 %> @file
3 %> @brief Draws hachure to above and below a curve
4 %>
5 %> This function uses a single "stds" vector to represent the upper and lower vertical distances from the "curve".
6 %>
7 %> It calls @ref draw_hachure2.m to do the job
8 %>
9 %
10 %> @param xaxis
11 %> @param curve
12 %> @param stds
13 %> @param color
14 function draw_stdhachure(xaxis, curve, stds, color)
15 
16 % Makes sure that everything is a row vector
17 xaxis = xaxis(:)';
18 curve = curve(:)';
19 stds = stds(:)';
20 
21 intervals = [curve-stds; curve+stds];
22 
23 draw_hachure2(xaxis, intervals, color);
function draw_hachure2(in xaxis, in intervals, in color)
function draw_stdhachure(in xaxis, in curve, in stds, in color)