Publisher review:daqtriggerreshape - Reshape triggered daq data, removing NaN's. When we grab data which spans multiple triggers, the data is separated by NaNs
This function strips out the NaNs and reshapes the data, adding one dimension for triggers. There will be one "column" in the extra dimension for each triggerExamples:- Single Channely = daqtriggerreshape(x)x: (Ns Ntrigger-1) *Ntrigger x 1 (with NaNs)y: Ns x Ntrigger
Input: 1 Channel. 5 triggers of 1000 sample eachThe input vector will be 5004 samples long, with 4 NaN's separating the triggers. The output vector will by 1000 x 5- Multiple ChannelsY = daqtriggerreshape(X)x: (Ns Ntrigger-1) *Ntrigger x NChannelsy: Ns x NChannels x Ntrigger
Input: 3 Channels. 5 triggers of 1000 sample eachThe input matrix will be 5004 x 3, with 4 NaN's separating the triggers. The output vector will by 1000 x 3 x 5 Requirements: · MATLAB Release: R12.1 · Data Acquisition Toolbox
daqtriggerreshape is a Matlab script for Test and Measurement scripts design by Scott Hirsch.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
daqtriggerreshape - Reshape triggered daq data, removing NaN's.
Operating system:Windows / Linux / Mac OS / BSD / Solaris