1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab figure into latex

  1. Sep 13, 2010 #1
    1. The problem statement, all variables and given/known data

    I am trying to attach a matlab figure in Latex

    2. Relevant equations

    3. The attempt at a solution

    I saved the graph as .eps instead of .fig, then i opened ghostscript, and saw that the figure was too wide to fit on the page...
    how can i mend this?

    thank you
  2. jcsd
  3. Sep 13, 2010 #2


    User Avatar
    Homework Helper

    There is the command \includegraphics[scale=0.5]{picture.eps}
    Where is this case you have scaled the picture down by half.
  4. Sep 13, 2010 #3


    User Avatar
    Homework Helper

    You also need \usepackacage{graphicx} in the preamble
  5. Sep 13, 2010 #4
    awesome :)

    what if i need it even a bit smaller?
    would i put scale=0.75?
    or scale=0.25?

  6. Sep 13, 2010 #5
    i fixed it...
    thank you
  7. Sep 14, 2010 #6


    User Avatar
    Homework Helper

    scale=1 means the same shape, scale=0.5 os 50% reduced. scale=0.25 is 25% of the original scale etc...
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Threads - Matlab figure latex Date
Can't seem to figure out this limit Aug 6, 2017
Rewriting ODE's into lower orders Nov 15, 2016
Matrix riccati differential equation using matlab Aug 5, 2016
Convolution in MATLAB Sep 28, 2015
Matlab help Jul 12, 2015