Here is how it is done.
- Open you figure file in MATLAB
- Goto File->Export Setup...->
- Apply you modifications like converting to grayscale etc. (Rendering->Colorspace)
- Choose "Export"
- In "Save as type" choose EPS
- Now you can use this EPS file in you .tex file:
\begin{figure}[t]
\begin{center}
\includegraphics[width=\columnwidth]{figure.eps}
\caption{my caption}
\label{fig:system}
\end{center}
\end{figure}
and choose latex->ps->pdf in your project builder (e.g. in TeXnicCenter)
Or if you want to convert this to pdf use the epstopdf utility that comes with MikTeX in the command prompt:
epstopdf figure.eps
and use it like this:
\begin{figure}[t]
\centering
\includegraphics[width=columnwidth]{figure.pdf}
\caption{my caption}
\label{fig:system}
\end{center}
\end{figure}
Note:
For some reason, direct export to pdf does not preserve the figure size.
Note:
For some reason, direct export to pdf does not preserve the figure size.
No comments:
Post a Comment