1 Visualization of the comodulation masking release using splot and filledcurves ( code to produce this figure, gfb_loop.gnu, gfb.dat, sig.dat, noise.dat)įirst we start with the gammatone filters. Tags: , functions, samples, special-filenames, splotįig. The values of the first column, given by $1 are scaled by fact in order to match the two axis and are then directly used as y values and given to the sig(y) function for the z values. But for our plot we need the y-axis and not the x-axis, because the x values should be constant at 700 and are therefore given by (700) at the splot command. This tells Gnuplot to use the xrange, apply a sampling of it and return it as first column for the plot command. In order to place this two dimensional function in our 3D plot we use the special-filenames property from Gnuplot, in this case the ' ' variant. We define the function sig(y) which is a 100Hz sinusoid centered at 2 for values of y between 0.1 and 0.4 and constant 2 else. # x-axis, which has a range of 0:1400, therefore we calculate an set samples 500 # Define the sinusoid signal to be plotted sig( y) = y > 0.1
0 Comments
Leave a Reply. |