rmfields(s,field)
Version 1.0.0.0 (2.21 KB) by
Noam Greenboim
Remove fields from a structure array, but without causing error
RMFIELDS Remove fields from a structure array, but without causing error when fileds don't exist int the original structure.
The code is based on the Matlab function RMFIELD, with slight modifications.
The code was written using Matlab R2014a, but will probably work on earlier versions (2008 and on for sure).
Cite As
Noam Greenboim (2025). rmfields(s,field) (https://www.mathworks.com/matlabcentral/fileexchange/49550-rmfields-s-field), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2014a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Structures 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 |