If you do not specify filename the save function saves to a file named matlab mat. This is very slow so it takes very long to do this for every file. Save testovaci modely1 mat c 1 comment.