I'm creating some advanced machine learning algorithms in Matlab including neural network learning. This takes a lot of time because of number of iterations (ex. 3h for teaching network some pattern). Is there any way to estimate the computation cost without running the program? That would be an easy way to optimize algorythms without running them.
for loopscompletely - use matrix/vector operations instead, that usually gives a huge performance boost