[Tex/LaTex] Insert text inside a image in eps format

epsgraphicsMATLABtikz-pgf

UPDATE:I tried the solution with overpic and it works fine. But the problem is, sometimes, my experimental setup changes and I have to reproduce the eps file using different parameters from Matlab. This results in me again re-adjusting the co-ordinates to align the tex code corresponding to the different objects in the image(eps format). This is difficult when I have to do it often. Is there any solution for that?

QUES: I have an image of solid rectangle generated in eps format from Matlab. Let us say, there is no other way for me to generate the same (I have other complicated things inside this rectangle). I want to mark the co-ordinates of the corners of this rectangle. Thus, I want to insert some text of the form

$(\lambda_{min},\lambda_{max})$

inside the image. The inbuilt editor of Matlab is not satisfactory. Is there any option in LaTeX to do the same?

Best Answer

PSfrag is a LaTeX package that allows one to overlay Encapsulated PostScript ( EPS) figures with arbitrary LaTeX constructions. I know that it works for figure created with MATLAB but I forgot if there are any caveats. I very seldom use MATLAB to create pictures for my documents. I use PSfrag often with Xfig. It is included in most TeX distribution with exception of KerTeX.