Indeed, 'goto' is not a valid MATLAB command. If you want to call a function named noD at that point in your program, just call it.
It seems as if you are programming with global variables. That is not usually a good idea. Generally, the scope of variables is local to a function. If you have parameters you want to change, pass them in and out of your functions like this
[out1,out2,out3] = myfcn(arg1,arg2,arg3,arg4)
You might want to read some introductory material on programming in MATLAB, such as the Getting Started guide and the function basics documentation.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation