How to extract interpolated values from a table

1 view (last 30 days)
Hey guys i need some help. I have this table T vs SOC to get OCV [voltage mV]. In this example I need to use the table the other way around, I have T=8°C and OCV=3800mV and i want to extract an interpolated SOC value from the table below. I want to do it automic in case i receive a new temperature T=38 and new current OCV=4052 the same script should be able to give a new SOC value OCV_SOC.png
Which funtions should i use to make it simple
For your help thaks in advance
Regards
JP

Answers (1)

KSSV
KSSV on 5 Jul 2019
REad about interp1 and interp2.

Categories

Find more on Interpolation in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!