Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help using exportfig

Status
Not open for further replies.

NS4U

Structural
Joined
Apr 2, 2007
Messages
320
Location
US
Hi, I am trying to use exportfig but for some reason it's not working as well as I had hoped. My code to output a figure is:

set(gcf, 'Units', 'Inches')

exportfig(gcf,[filename '-Impedance Channel 1 to Channel ' num2str(inst-1)], 'format', 'eps','width', 6,'height',6, 'color','rgb', 'lockAxes', 0, 'bounds','tight', 'FontMode', 'fixed');

I know eps is by far the best quality graphic. However, when I import these figures into word 2007 the graphic is (for lack of a better term) messed up. The plot displayed in word is slightly different than the one shown when output from matlab. However, if I just straight convert the eps figure to a PDF it comes out perfectly... is this something unique to word 07?

Also, I change the format to jpeg and for some reason the graphic size is always like 50" x 50"... it doesn't seem to matter what width/height I set

I want to use high quality images, however my documents are prepared in word, so I will need something that will work with word.

Any thoughts? Am I using exportfig correctly?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top