exceptions for write data, matlab path independent of input