Retrieving variable declared in batch file, into MATLAB

I am trying to pass a variable defined in a batch file to matlab (I am running a MATLAB job launched from SLURM). How can I do this?
For example, a variable "a" taking different values from 1 to 10 in a loop. How can I do that? (boths sides: loop in batch+retrieving the variable in MATLAB)

Categories

Tags

Asked:

on 21 Jul 2017

Answered:

dpb
on 21 Jul 2017

Community Treasure Hunt

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

Start Hunting!