Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The problem solved. I wrote a job script and run Matlab from that. The issue was transferring the path to Matlab.

The problem solved. I wrote a job script and run Matlab from that. The issue was transferring the path to Matlab.
The job script is like this:

!/bin/sh

rm -r tmp-runtimes

mkdir tmp-runtimes

cd (the path of matlab script)

INPUT=$1 echo "$INPUT" > script_log.out

NNNN="decoder_5spot('"${INPUT}"');exit;" echo "$NNNN" >> script_log.out

time -o time.out

matlab -nodisplay -nosplash -nodesktop -r $NNNN

The problem solved. I wrote a job script and run Matlab from that. The issue was transferring the path to Matlab.
The job script is like this:

!/bin/sh

#!/bin/sh
 #rm -r tmp-runtimes
#mkdir tmp-runtimes
 

rm -r tmp-runtimes

mkdir tmp-runtimes

cd (the path of matlab script)

script)

INPUT=$1 echo "$INPUT" > script_log.out

script_log.out

NNNN="decoder_5spot('"${INPUT}"');exit;" echo "$NNNN" >> script_log.out

script_log.out

# time -o time.out

time.out

matlab -nodisplay -nosplash -nodesktop -r $NNNN

$NNNN