matlab number of operations

Status
Not open for further replies.

janatian

Newbie level 2
Joined
Feb 23, 2011
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,291
Hi

Is there a function in matlab to evaluate computation complexity I mean big O for m.files
 

You can try using the profiler.
 

Sorry can u explain more? what is profiler?
 

Hi,

Matlab has no means to analyze big O complexity of an algorithm.
Nevertheless, you could get experimental results for different values of "n" using the profiler or measuring time with "tic" and "toc", and in this way observe the trend when "n" grows. (In you mesure time, take into account that the first run takes more time.)
Regards

Z
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…