5.0

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

FilterStruct

by Robert M. Flight

 

27 Jan 2009

Code covered by the BSD License  

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

Download Now | 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
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com