brango
Mechanical
- Feb 26, 2008
- 17
Hello, I am working on a code on MATLAB 7.0. It takes me about 5 hours for my program to run once.
I am working on optimization, so I have some functions that are called thousands of times.
I read about vectorizing the code, but im dealing with sophisticated loops and im not sure if they can be vectorized.
I also tried to run the profiler, and I analyzed the function taking most of the time.
For example, it says 35 secs for "other lines and overhead" and i was wondering if i can do something to reduce this time.
Other lines in my function dont take much time relative to the 35 secs mentioned above.
I can post the results obtained in the profiler if it helps.
Thank you for any help.
I am working on optimization, so I have some functions that are called thousands of times.
I read about vectorizing the code, but im dealing with sophisticated loops and im not sure if they can be vectorized.
I also tried to run the profiler, and I analyzed the function taking most of the time.
For example, it says 35 secs for "other lines and overhead" and i was wondering if i can do something to reduce this time.
Other lines in my function dont take much time relative to the 35 secs mentioned above.
I can post the results obtained in the profiler if it helps.
Thank you for any help.