Edit and add to librarypath programatically
조회 수: 9 (최근 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!