Problem:
Question 1- Create your own C function. Make sure that you include the correct syntax (function prototype, function call, and function definition). You can create a function that can do any kind of task. For instance, the function may display a message to the screen or compute a value.
Question 2- Write the MATLAB code for Particle swarm optimization for Rosenbrock function.
Please show code with comments so I can follow what you are doing.