This is not a bug in MATLAB.
In order to be able to edit the exported EMF file follow the listed steps:
1. Make sure that you are using a vector renderer (i.e. "painters") for your figure. You can check the renderer for your current figure by issuing the following command at the MATLAB prompt:
2. Ensure that the figure is set to export the vector information when you copy the figure using "Copy Figure" from the "Edit" menu. This can be done as follows:
In the figure, under "Edit -> Copy Options", ensure "Preserve Information" is selected.
Now, if you copy the file ("Edit -> Copy") or save the file as an Enhanced MetaFile (EMF) using the PRINT command as shown above,you will be able to edit it in MS Word. There is, however, a problem in the way MS Word handles metafiles. The metafile generated by the code above is not editable in Word 2003 (MS PowerPoint allows editing, but it creates some unnecessary lines in the process). This same file can be edited in other EMF editing programs such as Metafile Companion, downloadable from the following web site:
The problem in MS Word is related to the number of elements in the metafile. To illustrate the problem, run the following code in MATLAB:
figure ('renderer','painters')
z = peaks(35);
mesh(z);
colormap([0 0 0]);
print -dmeta peaks2.emf
This will produce fewer graphic elements than if you used "z=peaks;". If you insert "peaks2.emf" in an MS Word document following the steps described above, it can now be edited like other figures. In other words, MS Word does not allow the user to edit metafiles that have more than a certain number of elements. For workarounds, you should consult the MS Word documentation or contact Microsoft.
Best Answer