Can .mat files be moved between platforms? (IE say from a mac running OS X 10.6.5 with MatLab 2014a to RedHat Unix running 2016a or to Windows 10 running 2016b?)
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Nathan
el 3 de Mzo. de 2017
Comentada: Walter Roberson
el 4 de Mzo. de 2017
How portable are .mat files when using MatLab? I found a couple of good information sources in support, but none answered my question.
0 comentarios
Respuesta aceptada
John D'Errico
el 3 de Mzo. de 2017
Yes. They are completely portable, as long as...
1. You have the same set of toolboxes on each platform.
2. You are careful about system calls, and how you treat files, OUTSIDE of MATLAB. After all, paths and path separators are different on different platforms. So you need to use the appropriate tools for that, like pathsep, filesep, etc.
3. You do not use compiled code, which can be platform dependent.
Otherwise, m-files are simple text files. Multiple platforms are no problem. I've used the same set of tools on the Mac, Windoze, Unix, going back and forth with no problems.
3 comentarios
Walter Roberson
el 4 de Mzo. de 2017
Just worked out this evening that the representation of digitalfilter objects changed as of R2015b so those would not be portable between the versions you mentioned
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Import and Analysis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!