Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: 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

    hunt_mat

    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

    hunt_mat

    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?

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

    hunt_mat

    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...
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook