No BSD License  

Highlights from
Display structures with differences

2.66667

2.7 | 3 ratings Rate this file 0 Downloads (last 30 days) File Size: 3.48 KB File ID: #13754
image thumbnail

Display structures with differences

by Alessandro Toso

 

24 Jan 2007 (Updated 26 Jan 2007)

Function to display in the command line array of structures and mark different field values.

| Watch this File

File Information
Description

This function takes as parameter an array of struct and searches for differences in the same field. The output is column formatted in which the differences are marked.

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
24 Jan 2007 Jos x@y.z

No help, no H1 line, no checks for common errors ... this renders this function useless for now

25 Jan 2007 B. Roossien

Function cannot handle integers, structures or arrays as fields of the main structure. Furthermore bad use of function "getfield", no inline comments, no help, no error checking and it is slow for big structures.

12 Sep 2007 Paul Tucker

Very helpful

Please login to add a comment or rating.
Updates
26 Jan 2007

This version has been updated to display correctly numeric fields (nxm matrix), strings but not substructures. As suggested the use of getfield as been avoided to the more efficient dynamic filed name mechanism.

Tag Activity for this File
Tag Applied By Date/Time
structures Alessandro Toso 22 Oct 2008 08:58:13
function Alessandro Toso 22 Oct 2008 08:58:14
structs Alessandro Toso 22 Oct 2008 08:58:14
cell arrays Alessandro Toso 22 Oct 2008 08:58:14
display Alessandro Toso 22 Oct 2008 08:58:14
commands Alessandro Toso 22 Oct 2008 08:58:14

Contact us at files@mathworks.com