Index exceeds matrix dimensions. Error in GUI

I want to deliver a data struct 'data' into the subGUI from the main GUI with command 'handles.data=varargin{1}' in the openingFcn in the subGUI, but I cannot open the subGUI interface from the main GUI because of the error Index exceeds matrix dimensions. How can I fix this?

Answers (1)

Are you actually passing the data into the subGUI when you launch it? e.g.
subGUI( data );

Tags

Asked:

on 28 Jul 2016

Commented:

on 28 Jul 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!