No BSD License  

Highlights from
Remove a field from a structure

1.0

1.0 | 1 rating Rate this file 3 Downloads (last 30 days) File Size: 613 Bytes File ID: #1064

Remove a field from a structure

by Gane Wong

 

16 Nov 2001 (Updated 19 Nov 2001)

Much faster version of rmfield()

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 5.3.1 (R11.1)
Tags for This File  
Everyone's Tags
cell arrays, faster, field, remove, rmfield, structures, utilities
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
12 Jan 2006 Duane Hanselman

Now obsolete. In addition, it does its work by constructing a command string that it then passes to eval.

Contact us