Hello Panagiotis,
There is no direct way to calculate the computational complexity in MATLAB. However, you can check the time takn by two functions by using:
>>tic
//code (or function name)
>>toc
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!