How can I convert .out into .mat?

I have the data in the form of .out files but MATLAB cannot read them. How do I convert these files into .mat so that MATLAB can process them?
Thanks!

Answers (1)

Chad Greene
Chad Greene on 16 Jun 2016
I don't think .out is a format. I think it's just an extension. Can you open the .out files in a simple text editor like Notepad or TextEdit? If yes, read them with textscan, then save whichever variables you'd like to a .mat file with save.

6 Comments

Tra Nguyen
Tra Nguyen on 17 Jun 2016
Edited: Tra Nguyen on 17 Jun 2016
It can be opened with TextEdit. The data file has lots of observations (many columns). Can I still use textscan?
per isakson
per isakson on 17 Jun 2016
Edited: per isakson on 17 Jun 2016
If the files are not too many, try Import Data
&nbsp
Yes, textscan will most likely read your files. However, cvsread and dlmread will probably also do it. They might be easier to use.
I have the same problem. I need to read an .out file, which is a text file, but the file is too big to open. I couldn't also import it because of the size, it takes a lot of time to open it and didn't success.
do you have any idea how to solve that??
I remember dragging the file onto MATLAB and it worked. Try doing this maybe?
Can you attach a sample of the beginning of the .out file so we can see what it looks like? You will need to use an extension such as .txt, or else you will need to zip the .out and attach the zip.

Sign in to comment.

Categories

Asked:

on 16 Jun 2016

Commented:

on 6 Nov 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!