Code covered by the BSD License  

Highlights from
FilterStruct

5.0

5.0 | 1 rating Rate this file 0 Downloads (last 30 days) File Size: 1.61 KB File ID: #22798

FilterStruct

by Robert M. Flight

 

27 Jan 2009

Filters the fields of a structure array using a logical array.

| Watch this File

File Information
Description

Filterstruct allows one to use a logical matrix to filter the various fields of a structure identically. If filterlogic has one column and the fields contain more than one column the rows of each field will be filtered. If filterlogic has multiple columns, the fields that are filtered must be identical in size to filterlogic.
 
Will only filter those fields with the same number of rows as filterlogic (if only one column) or that are the same size as filterlogic (if multiple columns).

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
05 Mar 2009 Gary

Great timesaver!

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
filter Cristina McIntire 28 Jan 2009 10:22:48
structure Cristina McIntire 28 Jan 2009 10:22:48
field Cristina McIntire 28 Jan 2009 10:22:48
structure Robert M. Flight 28 Jan 2009 10:22:52
filter Robert M. Flight 28 Jan 2009 10:22:52
field Robert M. Flight 28 Jan 2009 10:22:52

Contact us at files@mathworks.com