Reshape triggered data acquisition analog input data
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
Platform Compatibility
Windows macOS LinuxCategories
- Test and Measurement > Data Acquisition Toolbox > Simultaneous and Synchronized Operations >
- Test and Measurement > Data Acquisition Toolbox > Data Acquisition Toolbox Supported Hardware >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.