Home > database >  run Matlab script with system argument in ubuntu terminal or bash script
run Matlab script with system argument in ubuntu terminal or bash script

Time:10-12

I want to run matlab script on ubuntu terminal or bash scripts with system argument.

for example, in python,

sample.py


variable_name=sys.argv[1]

print(variable_name)

and, run like this.

$ python sample.py arguments

How can I run matlab code like this?

CodePudding user response:

But, what do you want to do? Matlab have a system function system

If you want request user input and save it, input

  • Related