how run two codes at the same time from GUI?
조회 수: 4 (최근 30일)
이전 댓글 표시
*Hi,
How I can open two copies of matlab in my computer automatically.
In fact, I have two codes I would to run it at the same time. What I need is running the two codes in parallel from GUI automatically.
I need when press the a button, the two codes are running at the same time together.
Thanks*
댓글 수: 0
답변 (1개)
Iain
2014년 2월 18일
The best you can probably sensibly do is just use parallel computing.
Something like
parfor i = 1:2
if i == 1
result(i) = runcode1(input(1))
else
result(i) = runcode2(input(2))
end
end
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!