File Exchange

image thumbnail

System Identification using GA with a GUI interface

version 1.1 (15 KB) by Sam Elshamy
Idnetifying ARX model of a system using Genetic Algorithms with a GUI interface and compare it to Le


Updated 30 Nov 2014

View Version History

View License

This code identifies an ARX model of a system using Genetic Algorithms method in a GUI interfcae and compares the identified model with the model generated using the Least Error method.
The real system O/P, GA model generated O/p and Least Error model O/P are all compared in a single plot, while the Sum of Absolute Error is calculated and displayed for both models for comparison.

GA parameters are initialized with default parameters, but could easily be modified from the GUI interface.

The GUI is initialized with a ready I/P and O/P data and ARX orders as well, so you can hit "Estimate Model" to test the code without having to generate I/O data. (you can replace this data with your own)

Cite As

Sam Elshamy (2020). System Identification using GA with a GUI interface (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

Hakim Ahmad

Does anyone know to export data from this gui to workspace.



Can I use the GUI with 2014a
When I tried it I get the following error:
Attempt to reference field of non-structure array.

Error in identga>estimate_Callback (line 93)
if get(handles.estimate, 'value') == get(handles.estimate, 'max');

Error in gui_mainfcn (line 95)

Error in identga (line 48)
gui_mainfcn(gui_State, varargin{:});

Error while evaluating uicontrol Callback

asad asad

i have a question about this code..what is the type of selection method used here ??

Oriol Soto

great work, excellent for explaining the use of GA in a simple, yet interesting application.
Also a very good and intuitive GUI.

Nikos Nikolas

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!