Gephi and matlab
===

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 [Gephi](https://gephi.org/users/supported-graph-formats/csv-format/). If you click on the picture on the main page it will load a video that you can watch. 


On gephis supported graph formats page [here](https://gephi.org/users/supported-graph-formats/) they have a list of possible import formats:


    * GEXF
    * GDF
    * GML
    * GraphML
    * Pajek NET
    * GraphViz DOT
    * CSV
    * UCINET DL
    * Tulip TPL
    * Netdraw VNA
    * Spreadsheet

Looking at matlab the format I could output my cluster data could be in csv.  On gehpis site [here](https://gephi.org/users/supported-graph-formats/csv-format/) they explain the formats, edge list, mixed, matrix.

Im not really sure what they mean. Using FCM in matlab I get 3 outputs **centers**, **U** and **objFun**.

    [centers, U, objFun] = fcm(data, clusters, options);

So my question is how can I build CSV files from this data in the format that [they](https://gephi.org/users/supported-graph-formats/csv-format/) require. 

https://gephi.org/users/supported-graph-formats/spreadsheet/

http://forum.gephi.org/viewtopic.php?t=1896

I will reward anyone who can help with 100 points 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.
