I have a .DAT file, which is an output from Fortran code and is intended to use in Tecplot for graphic display. I would like to import the .DAT file into Matlab R2017b without using Tecplot. I have tried some codes that I found here in this forum, such as LoadTecplot.m, tec2mat.m, TecplotMatlabIO, but nothing works. The codes can read only the header of the .dat file, but gives me the list of variables and no data. The data are sorted into one long column, I assume, that the variable data is in the order X, Y, rho, u, v,... etc.
The example .dat file is here:
TITLE = "2D DATA"
VARIABLES = "X","Y","rho","u","v","press","Mach","laval","entropy","T"
ZONE I= 245 J= 87 DATAPACKING=BLOCK, VARLOCATION=
(3=CELLCENTERED,4=CELLCENTERED, 5=CELLCENTERED, 6=CELLCENTERED,
7=CELLCENTERED, 8=CELLCENTERED, 9=CELLCENTERED, 10=CELLCENTERED)
Any ideas how to import this? Thank you.