csv - How to add input parameters for matlab application execution -
i'm writing script in matlab , need execute program (written in c) 1 of lines (it generates output file).
my current code is:
!collect2.exe infile.csv <-- want able change variable can't
my question is, there way me either:
a. put variable in place of infile.csv such !collect2.exe filedir or b. run multiple files without variable
thanks in advance :)
edit:
filedir = input('what directory quotes?'); !cd / cmdstring = ['cd ', filedir]; system(cmdstring);
edit #2:
never mind, fixed issue. of help!
use system
function.
example:
filename = 'infile.csv'; cmdstring = ['collect2.exe ', filename]; system(cmdstring);
Comments
Post a Comment