title: error using videoWriter in Matlab (asyncio)
body: <p>I am trying to use videoWriter in Matlab 2013a on a Windows 7 64 bit machine. I also have Matlab 2009a installed (which could be the issue)</p>
  
  <p>My code fails here:</p>
  
  <pre><code>    vid = VideoWriter('TestVideo');
  </code></pre>
  
  <p>This gives me the following error:
  <em>Error using VideoWriter (line 240)
  Undefined variable "asyncio" or class "asyncio.Channel".</em></p>
  
  <p>Now if I do this:</p>
  
  <pre><code>    vid = VideoWriter('TestVideo.mp4','MPEG-4');
  </code></pre>
  
  <p>I get this error:
  <em>Error using VideoWriter (line 168)
  The specified profile is not valid.</em></p>
  
  <p>I tried installing codecs, but that didn't help.</p>
  
  <p>I read somewhere that someone had a similar problem, and it was due to a corrupt path and it could be caused by an older installation of Matlab (2007), but nothing about what was eventually done to fix it. I have tried to add the asyncio folder in the Matlab directory to the Matlab path, but again no luck.
  I have further tried to find out what videoWriter does regarding asyncio, but cannot find any clues in the code, and I honestly don't really know what asyncio is.
  Uninstalling Matlab 2009a is not an option.</p>
  
  <p>So can anyone help me please?</p>
  
  <p>BR Gorm</p>