1 function a = myFunc(a,b,c,d,e) 2 for idx = 1 : 100 3 a = a-b + c^d*log(e); 4 end 5 end 6 7 >> profile on; myFunc(a,b,c,d,e); profile report