Back to the main page.

Bug 3315 - ft_filetype's check of MATLAB header is too strict for Octave

Status CLOSED FIXED
Reported 2017-06-20 10:58:00 +0200
Modified 2019-08-10 12:40:41 +0200
Product: FieldTrip
Component: octave
Version: unspecified
Hardware: PC
Operating System: Linux
Importance: P5 normal
Assigned to:
URL:
Tags:
Depends on:
Blocks:
See also:

Guillaume - 2017-06-20 10:58:51 +0200

Currently ft_filetype checks a *.mat file is MATLAB-formatted with: filetype_check_header(filename, 'MATLAB') Octave's created MAT files (v6) have a different header: '# Created by Octave' so for compatibility the check should be: (filetype_check_header(filename, 'MATLAB') || filetype_check_header(filename, 'Octave', 13))


Guillaume - 2017-06-20 11:01:50 +0200

(In reply to Guillaume from comment #0) I take it back, sorry. The problem is elsewhere - Octave saved the file as text instead of binary.


Robert Oostenveld - 2019-08-10 12:34:31 +0200

This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue on https://github.com/fieldtrip/fieldtrip/issues.


Robert Oostenveld - 2019-08-10 12:40:41 +0200

This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue on https://github.com/fieldtrip/fieldtrip/issues.