Hi, dos('C:\Program Files\OrcadLite\PSpice\psp_cmd.exe test1.cir'); above code works at cmd prompt but not working in matlab and gives below errror
'C:\Program' is not recognized as an internal or external command, operable program or batch file.
.Please help me resolving this.
Thanking You, Sita

 採用された回答

C.J. Harris
C.J. Harris 2013 年 3 月 26 日

1 投票

If you want to send commands to an executable you need to modify the call slightly.
Try this:
dos('"C:\Program Files\OrcadLite\PSpice\psp_cmd.exe" test1.cir');

2 件のコメント

sita
sita 2013 年 3 月 26 日
thank you...it worked..
Ahmed
Ahmed 2018 年 1 月 8 日
Thank you sooooooo much

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

その他の回答 (1 件)

Wayne King
Wayne King 2013 年 3 月 26 日

0 投票

Try this to get the correct path and string options
[file, path] = uigetfile('*.m', 'Select File');
fullFilename = fullfile(path, file);
Select the executable so that you get that path back with fullFilename.
Then try
dos(fullFilename)
does that open your application?

1 件のコメント

sita
sita 2013 年 3 月 27 日
Yes,i could my application.Thanks for you response.

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

カテゴリ

製品

質問済み:

2013 年 3 月 26 日

コメント済み:

2018 年 1 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by