#!/bin/bash
#Author Martin Prudek
#This script decodes datafile codename and print the parameters
# in a matlab-readable way

#check for empty string
if [ ! "$#" -eq 1 ]; then
	echo "Enter file name from '../data/' directory.";
	echo "Turning to default: generating statistics for all the data from '../data/'"
	exit;
fi

. ./make_title.sh "${1}";

if [ -n "${title0}" ]; then echo "title0='${title0}';";	fi
if [ -n "${title1}" ]; then echo "title1='${title1}';";	fi
if [ -n "${title2}" ]; then echo "title2='${title2}';";	fi
if [ -n "${title3}" ]; then echo "title3='${title3}';";	fi
