systemWithoutMatlab​dirInPath

버전 1.0.1 (1.29 KB) 작성자: Max Mustermann
Execute operating system command without the Matlab path prepended to the search path (system PATH environment variable).
다운로드 수: 1
업데이트 날짜: 2020/6/5

라이선스 보기

Execute operating system command without the Matlab path prepended to the search path (system PATH environment variable).

By default, Matlab prepends its own path to the system PATH environment variable when executing an operating system command using the system function. This can lead to unexpected behaviour and hard to debug errors: The program called might load libraries from the Matlab path (which are likely incompatible) and not its own path.

I encountered this problem when I called a program that loaded Matlab's hdf5 library instead of its own.

This function removes the Matlab path from the system's PATH environment variable before executing an operating system command.

Created and tested with Matlab 2019b on Windows 8.1 64bit.

인용 양식

Max Mustermann (2024). systemWithoutMatlabdirInPath (https://www.mathworks.com/matlabcentral/fileexchange/76625-systemwithoutmatlabdirinpath), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2019b
R2016b 이상 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.1

Added minimal Matlab version.

1.0.0