2

Currently i am working on a project with Subversion control (SVN) integrated with matlab.

I want to get list of folders in the svn repository from URL under one project but for different modules.

I have tried like this :

 % to read all modules from excel 

data = xlsread(modules.xlsx)

for i= 1:length(data)

    module_name = cell2mat(data(i,1));
    sys = module_name;

    % to get list of folders under each module

    !svn list https://xxxx.collab.net/svn/repos/sys/branches/pro/

end

my problem is how 'sys' can be changed in the URL such that i can have access to all modules. currently it works only for one module ( if i replace 'sys'= module1)

Thank you in advance

Regards bstar

4

2 に答える 2

1

URL アドレスの代わりに次のように記述します。

['https://xxxx.collab.net/svn/repos/' module_name '/branches/pro/']

(module_name が機能するためには文字列である必要があります)

于 2012-10-31T20:44:34.957 に答える
0
svnCmd = '!svn list https://xxxx.collab.net/svn/repos/sys/branches/pro/'; 
evalc(strrep(svnCmd, 'sys', sys)) '
于 2012-11-01T09:20:21.613 に答える