No BSD License  

Highlights from
settings

5.0

5.0 | 3 ratings Rate this file 4 Downloads (last 30 days) File Size: 41.27 KB File ID: #6914
image thumbnail

settings

by Mihai Moldovan

 

13 Feb 2005 (Updated 16 Feb 2005)

Interact with Windows registry from MATLAB.

| Watch this File

File Information
Description

Locating user-defined settings files from functions on different MATLAB paths or from compiled stand-alone MATLAB applications may represent a problem.

settings function allows storing MATLAB structures to Windows Registry. Interfacing is achieved from a ready to compile MATLAB function by shelling REGEDIT. Windows registry secure access rules apply.

Test function is included.

MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
16 Feb 2005 Michael Robbins

Good idea

22 Apr 2005 David Abraham

This is totally easy. I like it! Just dump your settings in the registry, retrieve easily, no problem. My previous sol'ns were messier and harder than this by a large margin.

20 Jun 2005 Jorge Bosch

Yes, thanks Mihai, but it didn't work for me when I look for a key that doesn't exist and for some reason the regfile existed. So, I added a line to delete the regfile before calling the dos(cmd) function in loadsettings

28 Aug 2009 Paul Groot  
28 Aug 2009 Paul Groot

Nice function! I think there is a minor issue with the double backslash escaping. You can get rid of all the double backslashes by changing the fprintf-line from:
   fprintf(fid,t)
to
   fprintf(fid,'%s\n',t);

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
external interface Mihai Moldovan 22 Oct 2008 07:41:11
settings Mihai Moldovan 22 Oct 2008 07:41:11
interact Mihai Moldovan 22 Oct 2008 07:41:11
registry Mihai Moldovan 22 Oct 2008 07:41:11
windows Mihai Moldovan 22 Oct 2008 07:41:11
external code interfacing Mihai Moldovan 22 Oct 2008 07:41:11

Contact us at files@mathworks.com