Skip to content
Snippets Groups Projects
Commit 250cf298 authored by Martina Maggio's avatar Martina Maggio
Browse files

splitting in two

parent ff7d4f7f
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
MATLABPATH="/usr/local"
#MATLABPATH="/Applications/MATLAB_R2017a.app"
MATLABPROGRAM="$MATLABPATH/bin/matlab"
round()
{
echo $(printf %.$2f $(echo "scale=$2;(((10^$2)*$1)+0.5)/(10^$2)" | bc))
......@@ -19,8 +15,7 @@ export skewfactor=0.75 # probability of lower execution time than half
# folder for results
export R=results
# remove and create results folder
rm -rf $R
# create results folder
mkdir -p $R
cd $R
export R=`pwd`
......@@ -72,16 +67,8 @@ wait $pid7
# done with simulator
rm -f simulator
echo "------------------------------------------------"
echo "data generation terminated, starting processing"
# run matlab script
cd matlab
P=\'$R\'
export LC_ALL LC_ALL="en_GB.utf8"
$MATLABPROGRAM -nodisplay -nosplash -nodesktop -r "run_all_tests_matlab($P);exit;" >/dev/null
cd ..
echo "data generation terminated"
echo "------------------------------------------------"
echo "data processing terminated"
# back out of src
cd ..
......
#!/bin/bash
MATLABPATH="/usr/local"
#MATLABPATH="/Applications/MATLAB_R2017a.app"
MATLABPROGRAM="$MATLABPATH/bin/matlab"
# result folder handling
export R=results
cd $R
export R=`pwd`
cd ..
echo "------------------------------------------------"
# run matlab script
cd src/matlab
P=\'$R\'
export LC_ALL LC_ALL="en_GB.utf8"
$MATLABPROGRAM -nodisplay -nosplash -nodesktop -r "run_all_tests_matlab($P);exit;" >/dev/null
echo "------------------------------------------------"
echo "data processing terminated"
echo "------------------------------------------------"
# back out of src
cd ../..
......@@ -18,5 +18,4 @@ function run_all_tests_matlab(name_folder)
fprintf(2, 'Matlab wrote results for %s\n', name_subf)
end
fprintf(2, '------------------------------------------------\n' );
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment