title: Matlab and FTDI
body: <p>I am trying to send/retreieve data from/to <code>FPGA</code> using Matlab. I connected <code>FPGA</code> using Virtual com port. Now how to send data from Matlab to <code>FPGA</code> or read data of FPGA ? </p>
  
  <p><code>FTDI 2232H</code> is on the <code>FPGA</code> as well. I connected external LED's  and switches on the <code>I/O ports</code> of the <code>FPGA</code>. </p>
  
  <p>I am new in this field, so want some guideline to start communication b/w <code>MAtlab</code> and <code>FPGA</code>: </p>
  
  <p>I tried following code: </p>
  
  <pre><code>  s1= serial('COM9')
    fopen(s1)
  </code></pre>
  
  <p>. Is it the right way to communicate ? Kindly guide. thanks </p>