I made a GUI program in MATLAB, but the problem is when I run it in another MATLAB ( my MATLAB version is 2017, but the other's is 2014) it gets an errors.
Version incompatibilities are everywhere :) I have encountered such problems in Matlab, you should debug for the "changed" functions. Or use the Matlab version under which you have developed your function.
I have switched from Matlab to Python (3.x). I have learned that Python programs written in 2.x versions could have problems in 3.x also.