If filename does not include an extension matfile appends mat.
How to open matlab files without matlab.
This thread is archived.
I can t connect to my school computers that have matlab and i need to put a figure into a lab report by tonight.
New comments cannot be posted and votes cannot be cast.
Open or create a new file in text mode if you want to write to it in matlab and then open it in microsoft notepad or any text editor that does not recognize n as a newline sequence.
Hi you can just put all m files in a folder and make it as current working directory like i work in c program files matlab 2012a bin and one thing you can do is to make matlab layout default by going from window desktop layout default.
Otherwise open files in binary mode for better performance.
Otherwise matfile searches for the file along the matlab search path.
Filename can include a full or partial path.
When writing to the file end each line with r n.
For an example see fprintf.
If someone wants to point me in the right direction that would be great.
If the file does not exist matfile creates a version 7 3 mat file on the first assignment to a variable.