フィルターのクリア

execute system commands in matlab

3 ビュー (過去 30 日間)
Thomas Schäfer
Thomas Schäfer 2021 年 5 月 6 日
コメント済み: Walter Roberson 2021 年 5 月 6 日
Hi
I can not figure out how to write the correct input for matlab system (or dos, I have tried both) commands.
That I want to do is to call the program HFSS with certain flags. I have verified that it works correctly in a CMD prompt. Here I use the line:
"C:\Program Files\HFSS11\HFSS11\hfss.exe" -runscriptandexit "D:\HFSS Projects\read_variable_from_file.vbs”
I can not make it work in matlab, I would appreciate if someone could help me.
My thanks in advance!
BR
Thomas
  9 件のコメント
Thomas Schäfer
Thomas Schäfer 2021 年 5 月 6 日
Okay.
I manage to solve this by running:
system('set path=%path:C:\Program Files\MATLAB\R2018b\bin\win64;=% & "C:\Program Files\HFSS11\HFSS11\hfss.exe" -runscriptandexit "D:\HFSS Projects\read_variable_from_file.vbs"');
I should ad that I am using MATLAB2019
Thanks again for you help!
Walter Roberson
Walter Roberson 2021 年 5 月 6 日
Looks good.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Coder についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by