Remove a field from a structure

Much faster version of rmfield()

You are now following this Submission

As currently implemented, removing a field from a structure using rmfield() is inexplicably slow. This simple replacement is about 1000 times faster.

Editor's Note: This performance issue will be addressed in MATLAB R13.

Cite As

Gane Wong (2026). Remove a field from a structure (https://www.mathworks.com/matlabcentral/fileexchange/1064-remove-a-field-from-a-structure), 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