title: csv format matlab/gephi
body: <p>I have been using both k-means and Fuzzy c means for a few days now on a tricky data set, its yielding okish results but I want to visualize and manipulate the graphical outputs and I found a fantastic visual tool <a href="https://gephi.org/users/supported-graph-formats/csv-format/" rel="nofollow">Gephi</a>. If you click on the picture on the main page it will load a video that you can watch. </p>
  
  <p>On gephis supported graph formats page <a href="https://gephi.org/users/supported-graph-formats/" rel="nofollow">here</a> they have a list of possible import formats:</p>
  
  <pre><code>* GEXF
  * GDF
  * GML
  * GraphML
  * Pajek NET
  * GraphViz DOT
  * CSV
  * UCINET DL
  * Tulip TPL
  * Netdraw VNA
  * Spreadsheet
  </code></pre>
  
  <p>Looking at matlab the format I could output my cluster data could be in csv.  On gehpis site <a href="https://gephi.org/users/supported-graph-formats/csv-format/" rel="nofollow">here</a> they explain the formats, edge list, mixed, matrix.</p>
  
  <p>Im not really sure what they mean. Using FCM in matlab I get 3 outputs <strong>centers</strong>, <strong>U</strong> and <strong>objFun</strong>.</p>
  
  <pre><code>[centers, U, objFun] = fcm(data, clusters, options);
  </code></pre>
  
  <p>So my question is how can I build CSV files from this data in the format that <a href="https://gephi.org/users/supported-graph-formats/csv-format/" rel="nofollow">they</a> require. </p>
  
  <p><a href="https://gephi.org/users/supported-graph-formats/spreadsheet/" rel="nofollow">https://gephi.org/users/supported-graph-formats/spreadsheet/</a></p>
  
  <p><a href="http://forum.gephi.org/viewtopic.php?t=1896" rel="nofollow">http://forum.gephi.org/viewtopic.php?t=1896</a></p>
  
  <p>I will reward anyone who can help with 100 points with a bounty, as this visualization tool is what I want to use from now on and as of yet there isnt any questions on stack which explain how this can be done. So it may be useful for the future and the community for gephi/matlab users.</p>