Hmmm, I would guess that it might be sufficient to cd to the folder from within Matlab. I have not used Matlab for a long time, have switched to scilab which is free. But AFAIR Matlab also has a cd command. So something like
Before the call to Elmersolver should do the trick.
Elmer cases by the users for the users