Hello all,
If I have a txt file in the format of:
dt 0.001000tfinal 50.000000A 6000B 22.0C 36.000000D 9000.000000E 5.700000F 15.000000batch_run from t = 0 to 50 in steps of 0.001 with dt = 0.001................................................................................................................................................................................................................................................................................................................................................................................................................................................
where ….. above represents a (n x m) data matrix.
How would it be best to go about reading the values from the headers (dt, tfinal, A,..,F) and setting them as new variables in my workspace, ignoring the line "batch_run from t = 0 to 50…".
Then in addition to this separately reading just the data matrix, creating a new variable in my workspace where all the headers have been removed and only the matrix remains.
Many thanks.
Best Answer