from Read and Write Values from and to the Registry using Matlab by Uri Kartoun
Read and Write Values from and to the Registry using Matlab

Matlab_Read_Registry.m
% Read Values from and to the Registry using Matlab

% By Uri Kartoun at kartoun@yahoo.com

% Please visit: http://www.compactech.com/kartoun

Dir1 = 'Matlab\Key1';

Var_Index = input('Which variable would you like to read? ','s')
Var_Index=str2num(Var_Index);

Variables = winqueryreg('name', 'HKEY_CURRENT_USER', Dir1);
setting = winqueryreg('HKEY_CURRENT_USER', Dir1, Variables{Var_Index});
Variables{Var_Index};
num2str(setting)

Contact us at files@mathworks.com