Reshape triggered data acquisition analog input data

This is a utility function for use with the Data Acquisition Toolbox for MATLAB.
2.9K Downloads
Updated 4 Dec 2019

When you use an analoginput object from the Data Acquisition Toolbox to capture data which which spans multiple triggers, the data from each trigger is separated by NaNs. This function strips out the NaNs and reshapes the data, adding one dimension for trigger. There will be one "column" in the extra dimension for each trigger, yielding an output array of size NSamples x NChannels x NTriggers.

Cite As

Michelle Hirsch (2024). Reshape triggered data acquisition analog input data (https://github.com/michellehirsch/Reshape-Triggered-Data-from-MATLAB-Data-Acquisition-Toolbox), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R12.1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.3.0.2

Connected to GitHub.

1.3.0.1

Updated license

1.3.0.0

Made available as an easy-to-install MATLAB Toolbox file.

1.1.0.0

Update copyright and description.

1.0.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.