A dos command problem

the code below does not work in Matlab but when I execute it in cmd window it works. why?
command=[dir(1) ': & cd "' dir '" & "' filename '.bat"'];
err=dos(command);

回答 (1 件)

カテゴリ

ヘルプ センター および File ExchangeFile Operations についてさらに検索

製品

リリース

R2019b

タグ

質問済み:

2022 年 2 月 16 日

回答済み:

2022 年 2 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by