Fixing Corrupted y-Label Text in Word

  • Context: MATLAB 
  • Thread starter Thread starter hokhani
  • Start date Start date
  • Tags Tags
    Text
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 2K views
hokhani
Messages
610
Reaction score
22
I used the label for y-axis as below and plot the figure.
Code:
ylabel('$\frac{|Iup|-|Idown|}{|Iup|+|Idown|}$','interpreter','latex','FontSize',30)
but when I copy the figure in the word, the y-label text is corrupted. What should I do?
 
Physics news on Phys.org
soarce said:
I think that from Matlab you can't simply "copy" the figure, one has to save the figure specifying explicitly the output format, see http://es.mathworks.com/help/matlab/ref/saveas.html
When I copy the figure from "Figure/Edit/copy figure" and paste it into word, the figure is correctly pasted but when I restart the computer the text on the y-axis corrupts. However if I open Matlab again and do "Figure/Edit/copy figure and past" all the earlier figures will become corrected!
 
You should specify the parameters when copying to clipboard, see for instance

http://es.mathworks.com/help/matlab/ref/print.html#bumf4p_-1

where the clipboardformat parameter takes on the following values:

http://es.mathworks.com/help/matlab/ref/print.html#inputarg_clipboardformat

The flow that you are follow it's rather strange, one shouldn't restart Matlab in order to see correctly those figures!
I would use the saveas command. In this way you keep a figure file external to the word document for later use (presentation, sharing etc.)