How to write a function to find a value from a table.
Ältere Kommentare anzeigen
I have a table that looks like this https://www.ohio.edu/mechanical/thermo/property_tables/air/air_Cp_Cv.html. I need to write a function with temperature as the input and the other three points of data as the output, but I am unsure of how to set up the code? How do I write a code that also interpolates if the temperature value is between two points of known data? I am very very new to matlab and am not at all sure how to even start. Any help would be greatly appreciated. Thank you in advance!
2 Kommentare
Image Analyst
am 17 Jul. 2016
Is it a table, or a matrix of doubles? They're different and handled differently (look up table in the help if you don't understand why). Make it easy for us to help you by giving us code to generate the table variable, or matrix of doubles.
me
am 18 Jul. 2016
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Gas Dynamics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!