MATLAB production of IEEE-compliant drawings insert Latex

Source: Internet
Author: User

1.MATLAB is best saved as an EPS format, although the IEEE also supports other formats such as PNG, but when you save it as a PNG format, it is easy to do so in the case of late illustrations with insufficient resolution.

2. Matlab in the Save as picture, will keep the image of the white also preserved, when the picture in the latex inserted, will occupy a large gap, resulting in the main figure is very small. The remaining white can be removed in the following ways:

First Imshow (uint8 (data), ' border ', ' tight ', ' initialmagnification ', ' fit ');

This is to show the picture of the image, Uint8 (data) is the image data in the unsigned eight-digit format display, where the data is the MATLAB workspace to save the image pixel values of the matrix, the following parameters are removed left white, not modified, copy it.

Then set (GCF, ' Position ', [0, 0, width of picture, height of picture]); You can insert the Save as in EPS format.

Because the IEEE color map is very expensive, if you want to save the color map to grayscale format, as long as the import into Photoshop, choose Mode-Grayscale, just fine.

3. When Latex is inserted,

If you would like to insert two images side by side, you can refer to the following insertion method (\usepackage{subfigure} is required here):

\begin{figure}
\subfigure[fuck]{
\label{a}
\includegraphics[width=1.5in]{untitled.eps}}
\subfigure[shit]{
\LABEL{B}
\includegraphics[width=1.5in]{untitled.eps}}
\caption{***********}
\label{fig}
\end{figure}

If you want to add a frame to the picture, you can refer to the following insertion method:

\begin{figure}
\centering
\SETLENGTH{\FBOXRULE}{1PT}
\setlength{\fboxsep}{0cm}
\fbox{\includegraphics[totalheight=2in]{untitled.eps}}
\caption{}
\LABEL{C}
\end{figure}

1PT is the thickness of the box, and 0cm is the distance between the box and the picture.

MATLAB production of IEEE-compliant drawings insert Latex

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.