How to write a function to find a value from a table.
이전 댓글 표시
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
Image Analyst
2016년 7월 17일
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
2016년 7월 18일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Gas Dynamics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!