image thumbnail

isnestedfield

version 1.0.0.0 (1.66 KB) by Felix
Search for a field name in nested structures, similar to isfield.

137 Downloads

Updated 23 Aug 2013

View License

Works like isfield, but for nested structures, searching for the field in lower levels, too. The output is a boolean and a cell array containing all locations of the field. Set a max level depth through varargin. or leave empty to go all the way down.

Cite As

Felix (2021). isnestedfield (https://www.mathworks.com/matlabcentral/fileexchange/43190-isnestedfield), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
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!