# Difference between revisions of "Graph Fourier Transform Interactive GUI"

From WikiBiron

Line 10: | Line 10: | ||

==Getting Started== | ==Getting Started== | ||

− | * Before running GFT-IGUI you need to be sure you have installed the GSP ToolBox. | + | * Before running GFT-IGUI you need to be sure you have installed the [https://lts2.epfl.ch/gsp/ GSP ToolBox]. |

− | * After that you | + | * After that you need to create the following: |

+ | ** a graph structure using the GSP ToolBox | ||

+ | ** a plot parameters structure | ||

+ | ** a signal to be analyzed, and | ||

+ | ** call the GUI | ||

+ | |||

1 Sensor network example | 1 Sensor network example | ||

% Creating a graph structure using the GSP ToolBox | % Creating a graph structure using the GSP ToolBox | ||

G = gsp_sensor(10, param); | G = gsp_sensor(10, param); | ||

− | + | ||

% Defining plot parameters | % Defining plot parameters | ||

paramplot.show_edges = 1; | paramplot.show_edges = 1; | ||

Line 21: | Line 26: | ||

paramplot.vertex_size = 3; | paramplot.vertex_size = 3; | ||

paramplot.cp = [0 0 0]; | paramplot.cp = [0 0 0]; | ||

− | + | ||

% Defining a signal of the graph G to be analyzed by the GFT | % Defining a signal of the graph G to be analyzed by the GFT | ||

N = 10; | N = 10; | ||

f = rand(N,1)*20 + 60 + sin([1:N]'/5)*20; | f = rand(N,1)*20 + 60 + sin([1:N]'/5)*20; | ||

+ | |||

+ | % Call the GUI | ||

GFT_gui(G, f, paramplot) | GFT_gui(G, f, paramplot) | ||

+ | |||

+ | 2 Community graph example | ||

+ | |||

+ | % Creating the Graph | ||

+ | N = 12; | ||

+ | param.Nc = 3; | ||

+ | G = gsp_community(N); | ||

+ | |||

+ | % Creating plot parameters | ||

+ | paramplot.show_edges = 1; | ||

+ | |||

+ | % Creating the signal | ||

+ | f = rand(N,1); | ||

+ | |||

+ | % Call the GUI | ||

+ | GFT_gui(G, f, paramplot); | ||

== Contact == | == Contact == |

## Revision as of 14:41, 30 September 2015

## Contents

## General Information

This website provides information about the software Graph Fourier Transform Interactive GUI which is developed in Matlab

## Download

Click here to download the GFT-IGUI

## Installation

- The code is written in Matlab(c) version R2014b.
- To install the code, simply unpack the directory in a Matlab folder.

## Getting Started

- Before running GFT-IGUI you need to be sure you have installed the GSP ToolBox.
- After that you need to create the following:
- a graph structure using the GSP ToolBox
- a plot parameters structure
- a signal to be analyzed, and
- call the GUI

1 Sensor network example

% Creating a graph structure using the GSP ToolBox G = gsp_sensor(10, param); % Defining plot parameters paramplot.show_edges = 1; paramplot.bar = 1; paramplot.vertex_size = 3; paramplot.cp = [0 0 0]; % Defining a signal of the graph G to be analyzed by the GFT N = 10; f = rand(N,1)*20 + 60 + sin([1:N]'/5)*20; % Call the GUI GFT_gui(G, f, paramplot)

2 Community graph example

% Creating the Graph N = 12; param.Nc = 3; G = gsp_community(N); % Creating plot parameters paramplot.show_edges = 1; % Creating the signal f = rand(N,1); % Call the GUI GFT_gui(G, f, paramplot);

## Contact

- Comments, questions or concerns should be directed to: Diego R. C. Silva (diego at ect dot ufrn dot br)

## Acknowledgements

- This work was supported by CNPq