Wednesday, November 02, 2005

Observarions on Matlab Code Problems

1.Main observation, all of the calls to my qualityEval() function takes up to 0.1 sec. over 32000+ loops this is significant. Rather than calling a separate function, I have a matrix in my code that directly maps path costs to quality levels.

2.I tried converting my Matlab function into c code using mcc but it actually took longer to execute in c then it does in Matlab.

2.Using the find function in place of for loops seemed to slow my code down.

0 Comments:

Post a Comment

<< Home