What you need is the 1-D lookup table https://www.mathworks.com/help/simulink/slref/1dlookuptable.html
or just the linear interpolation equation slope and intercept values.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!