Pass a null string to stand-alone exe?
Show older comments
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 Comment
David Pesetsky
on 7 Aug 2018
Answers (0)
Categories
Find more on String Parsing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!