Obtain data from file header
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi! I am writting a code to generate grids and I want to make it as automatic as possible, for this I need to obtain some values regarding the number of nodes and faces which are located in the header of the file. Currently, when I use readmatrix, the code skips everything up to 'end_header'. The values I am trying to get are the ones in lines 5 and 9.
Thank you in advance, I cannot share the code.
0 Kommentare
Antworten (1)
Sulaymon Eshkabilov
am 24 Mai 2021
Hi,
In your exercise, two data import functions can be employed. They are fscanf() and textscan() by which you can not only read text headers by also collect valuable info from the text headers using specifiers, such as characters, number types, etc.
Good luck.
Siehe auch
Kategorien
Mehr zu Files and Folders finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!