title: Delete powerpoint presentation if it exists
body: <p>I'm trying to do something like this, here is my code:</p>
  
  <pre><code>% Start an ActiveX session with PowerPoint:
  ppt = actxserver('PowerPoint.Application');
  
  % If Powerpoint with this title exists
  if exist(pptTitle,'file');
    % Delete presentation:
    invoke(ppt.Presentations,'Delete',pptTitle);
  end
  </code></pre>
  
  <p>But Matlab doesn't recognize that command. Does anyone know how to delete a Powerpoint presentation from Matlab?</p>
  
  <p>And as a secondary question, is there a command in Matlab to close the powerpoint application if it is open?</p>