フィルターのクリア

Is it possible to run more than one external command using MATLAB simultaneously?

4 ビュー (過去 30 日間)
AKHILA GOUDA
AKHILA GOUDA 2020 年 8 月 24 日
回答済み: Raymond Norris 2020 年 8 月 24 日
I want to run more than one external command simultaniously using matlab code without waiting to the results of 1st one.
% suppose,
% there are two different task
system('G:\sigma plots\Project4.pzfx')
system('G:\sigma plots\project.pdf')
% i want open both these two file simultaneously.

回答 (1 件)

Raymond Norris
Raymond Norris 2020 年 8 月 24 日
Hi Akhila,
The system doc describes one option of putting the command in the background
To execute the operating system command in the background, include the trailing character, &, in the command argument. For example, type 'notepad &'. The exit status is immediately returned to the status variable. This syntax is useful for console programs that require interactive user command input while they run, and that do not run correctly in the MATLAB Command Window.
If command includes the trailing & character, then cmdout is empty.
Thanks,
Raymond

カテゴリ

Help Center および File ExchangeAdding custom doc についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by