필터 지우기
필터 지우기

Running a matlab file multiple times on the same computer

조회 수: 5 (최근 30일)
Kostas Housiadas
Kostas Housiadas 2019년 4월 18일
댓글: Walter Roberson 2019년 4월 20일
Can I run the same version of my matlab code, simultaneously, on the same computer (with different input data and input/output folders)?
My computer has 4 cores and I want to take advantage of this.
  댓글 수: 2
Kostas Housiadas
Kostas Housiadas 2019년 4월 20일
One answer is that you make multiple copies of the same code and run each one in batch mode.
Walter Roberson
Walter Roberson 2019년 4월 20일
No need to use multiple copies of the code if you redirect stdin and stdout. input() the name of the input data file and output data file.

댓글을 달려면 로그인하십시오.

답변 (1개)

Bob Thompson
Bob Thompson 2019년 4월 18일
Short answer is yes, it is possible, but unfortunately I am not exactly sure how to do it. If I remember the method I saw it was not done in Matlab, but rather with a cmd window executable.
If you have the parallel computing box it is possible to conduct this within Matlab itself, using parpool.
This might be helpful for running externally.

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by