Thanks a lot for your attention.
To clarify more, In my notebook I have a set of data for energy density which I named it DataA and another set of data for pressure named DataB that were imported.
The number of elements of both of data are equal since these data are related to a plot which shows pressure in terms of energy density.
Due to I do not have an explicit function for energy density in terms of pressure or pressure in terms of energy density I have to use interpolation.
In fact by using Interpolation I could use these data as a function. For instance, I choose an arbitrary pressure p1 for this code written in Matlab, E=interp1(Data(:,2),Data(:,1),p1);
It gives me the corresponding energy density by utilizing the interpolation
For an arbitrary energy density e1 I can use this code written in Matlab, P=interp1(Data(:,1),Data(:,2),e1); and the result is the corresponding pressure.
Now I want to do the calculation explained above by Mathematica.