<p dir="ltr">To clarify a bit - the problem you are experiencing most likely is a result of using all these commands from within a function.<br>
Some eeglab commands rely on variables that are either globally available or present in your base workspace.<br>
Using globals or assignin / evalin is one option.<br>
Another one is to turn your function into a script - this way if you call it from your base workspace it will be evaluated there and you should be able to update the gui.</p>