Matlab based task coded using cogent toolbox