"M " <firstname.lastname@example.org> wrote in message <email@example.com>... > I have a program that mainly consists of three interleaved for-loops and and ode45 function in between them. > When I start the program everything works fine but it becomes more slowly with every loop. At the beginning it works pretty fast but slows down pretty fast. > I know that for-loops are slow in Matlab but how can the program become more and more slowly? > All values that are saved for later use are written into a predefined matrix. > I have no idea where to look for the problem. > Thanks for any suggestions.
it seems the memory is overloading. Did you check the memory requirements during the program with taskmanager?