[out3a out3b] = gui3(out2a, out2b); or some thing alongside People lines. The arguments might be extracted out on the varargin mobile variety of your opening code for that GUI, such as in the GUI's "OpeningFcn" function should you employed Manual. At the time They are really within your opening functionality, http://andersonyvspl.blogdon.net/matlab-assignment-expert-can-be-fun-for-anyone-14083057