rmfields(s,field)

Remove fields from a structure array, but without causing error

You are now following this Submission

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 (2026). rmfields(s,field) (https://www.mathworks.com/matlabcentral/fileexchange/49550-rmfields-s-field), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0