index_sizematches_rows
版本 1.0.0.0 (2.0 KB) 作者:
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.
引用格式
Jamie Rodgers (2024). index_sizematches_rows (https://www.mathworks.com/matlabcentral/fileexchange/28459-index_sizematches_rows), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2009b
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Language Fundamentals > Matrices and Arrays >
- MATLAB > Language Fundamentals > Matrices and Arrays > Creating and Concatenating Matrices >
在 Help Center 和 MATLAB Answers 中查找有关 Matrices and Arrays 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |