Project 1 - Parsing NASA thermodynamic data
The program starts ih the "fopen" command, to open the file.
First line consists of the text( thermo). 'fgetl' command to read the first line in the given file.
Second line consists of 3 temperature values.
Nowto obtain the global minimum , medium and the maximum temperature from the split data, use "str2num' as this comand converts the character array to the nuerical array.
Then create a vector of 400 eventually spaced temperature points ucing "linspace" command and provide universal gas constant.
3,4,5 lines in the data file are commands. Use 'fgetl' for reading theses commands.
From line 6 to 218 there are set of 4 lines. The first line consists o the species name and the next three linea contain the experimental valuies.
Read the line 6 using 'fgetl' and started it in line variable. Read ine 7 using 'fgetl' and statred it in line 2 variable.
Use strfind command to find the place of E in line 7, strfind is used to find stringsd with other strings. Now store them in an array named "A".
Simirally, follow these steps for the next 2 lines. Then, you will get A,B,C, arrays respectively.
Now extract all the coedfficients (a1,a2,a3, a4, a5, a6, a7,b1, b2, b3, b4, b5, b6, b7) using "str2num" command.
All this process should be done again gor nthe line 7 to line 212. therefore, we have created a for loop for all the 53 species.
At the start the file was running the but the file wasn't running after removing the error I came to the error as unidentified error "specific_heat". After removing that error to The program wasn't showing any command.