Skip to content
Snippets Groups Projects
Commit 7b68ba77 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Add powerShell script.

 - Translation of run.sh (not tested),
 - Assumes that matlab is in the path,
 - Requires adjustment of the paths defined at the top of compute_transition.m,
 - Script execution must be allowed.
parent 838074d4
No related branches found
No related tags found
No related merge requests found
function Run-MatlabBatch {
param (
[string]$fileName,
[int]$modelsValue,
[string]$logFile
)
while (-not (Test-Path $fileName)) {
matlab -batch "MODELS=$modelsValue; compute_transition;" | Tee-Object -FilePath $logFile -Append
}
}
Run-MatlabBatch -fileName "m10-done.info" -modelsValue 1 -logFile "m10-all.log"
Run-MatlabBatch -fileName "m20-done.info" -modelsValue 2 -logFile "m20-all.log"
Run-MatlabBatch -fileName "m30-done.info" -modelsValue 3 -logFile "m30-all.log"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment