how can i open .out extension file in matlab?

12 次查看(过去 30 天)

回答(2 个)

Star Strider
Star Strider 2025-1-14
That depends on what is inside the file.
If it is a text file, you can use either readtable or readmatrix with the addition of FileType='text' to the argumentt list. See the readtable documentation section on FileType for those details, since other options are also available.
If it is a binary file, then you need to know how it was formatted. See the documentation on the fread function for those details.
If you believe it to be a MATLAB .mat file, you can use the load function with the addition of '-mat' to the argument list.
Beyond that, if you know what application created the file, go to the application website to see iif you can find a way to read it. Then, save that result to a format that MATLAB can read easily.
.

Walter Roberson
Walter Roberson 2025-1-25
".out" is not a standardized file extension. ".out" is used by many different programs, and contains anything from text printouts to binary forms of compiled objects.
".out" used to be a semi-popular file extension used by Fortran programs for arbitrary text output. Whether the text was structured or not was very variable.
SInce we lack further information, the best we can say is that you can use fopen and fread on ".out" files. Interpreting the contents of the ".out" file might be "not too bad" or might be fairly difficult.

类别

Help CenterFile Exchange 中查找有关 Workspace Variables and MAT Files 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by