fixed fopen error handling in matrix archives matlab files