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