fread + how can I see the contents of the file with fread?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Farz Tak
am 20 Okt. 2015
Kommentiert: Farz Tak
am 20 Okt. 2015
I am using fread to read and open a binary file. I should determine the size in the fread otherwise it gives me a huge vector data as a results. And I don not know how to organize it. I mean I want to see the variables of my file and the size of each, so I will know what to extract for, the file. Any help here?
Thanks,
Zeinab
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 20 Okt. 2015
Binary files often do not have any kind of header giving directory information. Some binary files are organized; it would depend upon which program was used to write the file.
There is no one format for "binary files". "binary file" is the term used for any non-text file. There is no one format for files with ".bin" extension: that extension is used by many many different programs to produce files that might not have anything to do with the other program.
Often you need to know exactly how the program wrote the files and then copy that exact format when you read. This is typical with binary files.
There is no requirement that it be possible to work it out with a little trial and error: binary files may be compressed or may have their information packed in arbitrary ways or may be encrypted.
Binary file should be understood to be any data file that is not human readable. No standards at all, overall.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu File Operations finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!