Salut,
Je connais pas matlab mais si ton fopen est comme celui du C, il faut lui dire que tu ouvre le fichier en mode binaire!
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/fopen.html
"Files can be opened
in binary mode (the default) or in text mode. In binary mode, no characters are singled out for special treatment. In text mode on the PC, the carriage return character preceding a newline character is deleted on input and added before the newline character on output. To open in text mode, add "t" to the end of the mode string, for example 'rt' and 'wt+'. (On UNIX, text and binary mode are the same, so this has no effect. But on PC systems this is critical.)
"
Modifié par breizhbugs le 29/10/2005 20:34