Troubleshooting and Potential Problems

So your GUI doesn’t work and you don’t know why. Here are a couple of tips that might help you find your bug:

  1. If you can’t figure out where you error is, it might be a good idea to quickly go through this tutorial again.

  2. The command line can give you many hints on where exactly the problem resides. If your GUI is not working for any reason, the error will be outputted to the command prompt. The line number of the faulty code and a short description of the error is given. This is always a good place to start investigating.

  3. Make sure all your variable names are consistent in the code. In addition, make sure your component Tags are consistent between the .fig and the .m file. For example, if you’re trying to extract the string from the Edit Text component, make sure that your get statement uses the right tag! More specifically, if you have the following line in your code, make sure that you named the Edit Text component accordingly!

    a = get(handles.input1_editText,'String');
  4. The source code is available here, and could be useful for debugging purposes.

  5. If all else fails, leave a comment here and we’ll try our best to help.

Launching GUI from Command Prompt

Pages: 1 2 3 4 5