title: Accessing outlook contact lists in Matlab.
body: <p>I'm trying to use Matlab to add contacts to a specific contact list in Outlook.
  I can create new contacts using this: </p>
  
  <pre><code>h = actxserver('outlook.Application');
  
  newContact = h.CreateItem('olContactItem');
  newContact.FirstName = 'John';
  newContact.LastName = 'Smith';
  newContact.Email1Address = 'john.smith@email.email';
  newContact.Save();
  
  % newContact.Display;  % To check your work
  h.release;  % Close the ActiveX interface
  </code></pre>
  
  <p>However, this method will add the contact to my first email-account. I wish to be able to specify to what account the contacts are saved, and to what contact group. </p>
  
  <p>I've looked around in <a href="https://msdn.microsoft.com/en-us/library/bb208225(v=office.12).aspx" rel="nofollow">Outlook's object model reference</a> and found a few promising things like <code>AdressLists</code> but i've not been able to figure out how i can get this to work. </p>