I'm working on using MATLAB to produce an automated PowerPoint report. In order to be able to edit a MATLAB plot in PowerPoint we use PasteSpecial. 

Manually, we use Copy Figure in the MATLAB figure and then Alt+e+s to PasteSpecial as an Enhanced Metafile into the PowerPoint file. This creates a group of objects we can manually edit. I would like to execute this PasteSpecial programmatically from MATLAB.

This link shows that you can do a PasteSpecial:

<https://learn.microsoft.com/en-us/office/vba/api/powerpoint.shapes.pastespecial>

So I created MATLAB function to do the PasteSpecial (specifically PasteSpecial(2)) which works except that the pasted figure is a simple bitmap not a set of grouped objects we can edit.

From the referenced link I think I need something like PasteSpecial(ppPasteEnhancedMetafile) but I can't find any way to access ppPasteEnhancedMetafile.

Note I'm doing this with just the base MATLAB not the Mathworks Toolbox. Also, I need the PasteSpecial not an alternative like create a figure, save as png, and insert because we want to be able to edit the figures in PowerPoint.