Home \ Machine Learning \ Neural Gas and GNG Networks in MATLAB

Neural Gas and GNG Networks in MATLAB

Neural Gas network is a competitive Artificial Neural Network (ANN), very similar to Self-Organizing Map (SOM), which is proposed by Martinetz and Schulten, 1991. Neural Gas network can be used to solve unsupervised learning tasks, like clustering, dimensionality reduction, and topology learning. It has many applications in the fields of pattern recognition, data compression, speech recognition, and image segmentation. For more information on the Neural Gas network, you can see the related article of Wikipedia (here).

In 1995, an extended version of Neural Gas, entitled Growing Neural Gas (GNG) network is proposed by Bernd Fritzke, which begins only with 2 neurons, and the network grows during the execution of the algorithm. In addition, some minor differences in the mechanism of learning an adaptation exists between basic Neural Gas and Growing Neural Gas.

In this post, we are going to share with you, the open-source implementation of Neural Gas network and Growing Neural Gas (GNG) network in MATLAB. The algorithms are implemented in a structured manner and if you are familiar with MATLAB programming language, you will find it easy, to use the codes in your research projects.


The download link of this project follows.

Implementation of Neural Gas Network and Growing Neural Gas Network (GNG) in MATLAB


Citing This Work

If you wish, you can cite this content as follows.

Cite as:

Mostapha Kalami Heris, Neural Gas and GNG Networks in MATLAB (URL: https://yarpiz.com/77/ypml111-neural-gas-network), Yarpiz, 2015.


  1. Hi, i need Pattern Recognition with Learning Vector Quantization. Can you help me?

    • Dear Ulmer,
      The source code for pattern recognition and classification using Learning Vector Quantization (LVQ) will be added in near future. Please follow us via feed or social pages, to be updated about the newest items, published on Yarpiz.

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.


Check Also

Feature Selection using Metaheuristics and EAs

Feature selection is one of common preprocessing tasks, which is performed to reduce the number ...