Dear,

i was able to use two m-functions to apply the forces along x and y direction.

To explain better, functions are myfunFX(x,y) and myfunFY(x,y) for the forces in the two directions, i test in Matlab and works correctly.

Anyway, based on the formula that i use i can have errors on FEATool simulation

For example if i use return=1 or return =x or it works, if i use return = x^2 i get the error :

Of course function on Matlab console works

Please give me a feedback on where i am wrong, many thanks.

Marco