|
|
| File Information |
| Description |
ML provides a useful function RMFIELD to remove specified field(s) from a structure, but no corresponding function to KEEP specified field(s), removing the rest. This function addresses that discrepancy.
ex.:
a = dir('*.m');
b = keepfield(a,{'name','date'});
This is an exceptionally short but useful piece of code. |
| Acknowledgements |
Keep
inspired this file.
|
| MATLAB release |
MATLAB 7.0.1 (R14SP1)
|
| Other requirements |
Tested in ver 6.01 and ver 7.04 sp2. |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (1) |
| 15 Mar 2006 |
Omer Demirkaya
|
|
|
|
Contact us