Code covered by the BSD License  

Highlights from
StructFind

Be the first to rate this file! 11 Downloads (last 30 days) File Size: 1.76 KB File ID: #35022

StructFind

by

 

Find all fields within a struct (array) where the search pattern is found

| Watch this File

File Information
Description

Function to search for entries within a structure. This is done recursively, running through all elements of array-structures.

Input:

      search_struct: structure to be searched, could also be array of struct

      search_object: string, integer, cell, array or other thing to be searched for

   [optional]

      structure_name: name of the structure to be searched. Used for full output of the structure content

Output:

      FoundFields: Cell array of fields where the search object is found.

Acknowledgements

Structfind inspired this file.

MATLAB release MATLAB 7.13 (R2011b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us