isnestedfield

Version 1.0.0.0 (1.66 KB) by Felix
Search for a field name in nested structures, similar to isfield.
142 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 (2026). 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
Categories
Find more on Structures in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0