how can i open .out extension file in matlab?

12 vues (au cours des 30 derniers jours)
Suharni
Suharni le 14 Jan 2025

Réponses (2)

Star Strider
Star Strider le 14 Jan 2025
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 le 25 Jan 2025
".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.

Catégories

En savoir plus sur Workspace Variables and MAT Files dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by