Pass a null string to stand-alone exe?

조회 수: 1 (최근 30일)
David Pesetsky
David Pesetsky 2018년 8월 7일
댓글: David Pesetsky 2018년 8월 7일
Hello,
I compiles a function as exe, but don't know how to pass the arguments. They are all supposed to be strings like file paths or names, but some could be "blank", and inside the function that should somehow be detectable:
function smoothExtBLRexcel (rosefile,rosesheet, filenameEnvelope,envelopeSheetname)
if ~strcmp(filenameEnvelope,'')
... do stuff
I thought to invoke the exe as:
smoothExtBLRexcel rose\BLR_Results_inclSF.xlsx Loads '' Loads
It seems to not detect the 3rd arg as a empty string.
Anything fancy needed?
Thanks a lot.
  댓글 수: 1
David Pesetsky
David Pesetsky 2018년 8월 7일
Late breaking news... using double quotes instead of single quotes does the trick. I'll leave the question open a bit longer anyway....

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Web Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by