MATLAB: How to start the Reuters Configuration Editor without using the DOS prompt in Datafeed Toolbox 3.3 (R2009a)

configurationdatafeedDatafeed ToolboxdoseditorMATLABpromptreuters

I want to start the Reuters Configuration Editor from MATLAB.

Best Answer

This enhancement has been incorporated in Release 2010a (R2010a). For previous product releases, read below for any possible workarounds:
You can start the Reuters Configuration Editor from MATLAB by calling the following function in MATLAB:
function reutersconfigeditor
dataFeedFolder = fullfile(matlabroot, 'toolbox', 'datafeed', 'datafeed');
javaPath = fullfile(matlabroot, 'sys', 'java', 'jre', computer('arch'), 'jre', 'bin', 'java.exe');
% Run.
system([javaPath ' -classpath "' fullfile(dataFeedFolder, 'config_editor.jar') '" com.reuters.rfa.tools.config.editor.ConfigEditor']);
Note that if MATLABROOT contains any spaces, for example, 'C:\Program Files\MATLAB\R2008b', you would need to do the following:
1. Save 'reutersconfigeditor.m' in MATLABROOT (the directory returned by the MATLAB command MATLABROOT)
2. Open 'reutersconfigeditor.m' and delete all instances of MATLABROOT.