View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Structure Overwrite and Merge

5.0 | 1 rating Rate this file 4 Downloads (last 30 days) File Size: 1.62 KB File ID: #38821 Version: 1.0

Structure Overwrite and Merge



To Overwrite and Merge two structures. Both overwrite and Merge are optional.

| Watch this File

File Information

This is a funtionality I required for my GUI simulator where the user enters parameters in GUI and these parameters over-ride the default ones of the simulator. Merge funtionality adds these parameters as 'extra'. I can not afford to have bugs in this one (ofcourse :)). So if you kindly find any bugs let me know. I have made it general so other users can use it if they require. Also its case-sensitive which is annoying.

Required Products MATLAB
MATLAB release MATLAB 7.8 (R2009a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
07 Dec 2016 Andrew Stamps

This submission could (should?) be made recursive to handle the case when the fields of the top-level structures are themselves structures.

Comment only
20 Nov 2012 Jeff Anderson

Did exactly what I needed to do. Thank you!! Great for a gui that has a lot of parameters. You can create a default structure in the function then pass it just the user overwrites and use this function to merge and make the correct overwrites!

Contact us