Edit and add to librarypath programatically
8 ビュー (過去 30 日間)
古いコメントを表示
Is it possible to do the following programatically?
In Matlab, type
>> edit librarypath.txt and add the line:
C:/Program Files/Micro-Manager-1.4
Thanks Jason
0 件のコメント
回答 (1 件)
Walter Roberson
2015 年 9 月 24 日
lpfile = fullfile(prefdir, 'librarypath.txt');
[fid, message] = fopen(lpfile, 'at');
if fid < 0;
error('Could not open file because: %s', message);
end
fseek(fid, 0, 'eof');
fprintf(fid, '%s\n', 'C:/Program Files/Micro-Manager-1.4');
fclose(fid)
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!