Well I did define it as a Global variable before I referenced it. It still returns that same error. What other ways can I use to call the variable?
Also, the code I am designing creates an AVI file. I am using the left portion of my GUI to allow the user to input all desired parameters. By clicking start matlab will create the AVI file then play it back in the right side of my GUI.