I am a beginner in MATLAB, and I am finding it very difficult to understand sample codes and the functions used in it even after googling "help (that function)". How should I approach to understand it?
Could you be more specific with a small sample matlab code?
From your question I am not getting your real problem. If your problem is with how to start learning matlab then it won't be that much difficult to start. You simply practice matlab with very basic and simple tasks to be accustomed with matlab environment and the program structure as well as the basic functions. Then you may go to the next level with complex algorithm.
As a beginner in MATLAB programming language, I would suggest that you spend some time (perhaps couple of days if you are already familiar with other programming languages) to study and understand the fundamentals of MATLAB such as: 1. Defining a Variable/Constant (Numbers/Text/Characters), 2. Performing Arithmetic/Logical Operations on Variables/Arrays/Matrices, 3. Array indexing, 4. Defining a Function/Calling a function, 5. Assignment statements and string manipulations, 6. Using Conditional Statements such as: If… Then… Else Construct/ For… Loop. If you could study this things with the MATLAB Help, I believe it would help you to understanding better the ACO MATLAB codes.