index_sizematches_rows
Version 1.0.0.0 (2.04 KB) by
Jamie Rodgers
Useful for : EASY LOGICAL INDEXING INTO COMPLEX STRUCTURED ARRAYS
Based on checking the number of rows in every field and subfield with a complex structured array and indexing
only those elements that size- match the number of rows in the index array.
SIZE MATCH/ INDEX OPERATION APPLIES TO ALL SUB-FIELDS WITHIN THE STRUCTURED ARRAY INCLUDING ANY SUB-STRUCTURE FIELDS.
Non size matched fields are preserved unaltered.
Cite As
Jamie Rodgers (2024). index_sizematches_rows (https://www.mathworks.com/matlabcentral/fileexchange/28459-index_sizematches_rows), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2009b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Language Fundamentals > Matrices and Arrays >
- MATLAB > Language Fundamentals > Matrices and Arrays > Creating and Concatenating Matrices >
Find more on Matrices and Arrays in Help Center and MATLAB Answers
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.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |