NBT contains the function nbt_plot to plot your signals, with some extra features besides the standard Matlab options. Before the plot appears, a popup window will let you specify several settings for the plot: the channels to be plotted, the time interval, the frequency interval, the units at the x-axis, the colors of the signals, and the vertical distance between the signals. Once the plot is generated these settings can be edited by clicking the “edit plot parameters” button at the upper right of the figure. In case of EEG data, the channels to be plotted can be selected interactively (see figure below). The buttons at the figure allow to scroll in time and through channels. In the plot, right click on a channel to display the channel number.
Signal = NBT Signal matrix
SignalInfo = NBT Info object
timescale = 'minutes' or 'seconds'. Sets the time scale and units for plotting (default = no conversion to time units, units are samples)
frequencyinterval = 1-by-2 vector, containing the frequencies of the butterworth bandpass-filter interval (default = no filtering)
filterorder = double, order of butterworth filter (default = 4)
add_legend = logical (0 or 1), 1 means add legend (default = 0)
add_colors = logical (0 or 1), 1 means plot each signal with a different color (default = 1)
distance = double, the distance in vertical direction between the signals in the plot (default = 6*median of standard deviations of signals)
linepoint = character, 'L' means plot line between samples, 'P' means plot line between samples and individual samples as points.
Only the inputs Signal and SignalInfo are obligatory, the other parameters can be left out or be empty. The channels and time interval to be plotted can be set at the beginning of the function nbt_plot.
tutorial/how_to_plot_signal_traces.txt · Last modified: 2012/12/10 17:49 by Simon-Shlomo Poil