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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -