Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Thread Subject:
calling a pushbutton callback inside the GUI

Subject: calling a pushbutton callback inside the GUI

From: nman2084

Date: 14 Feb, 2012 15:04:44

Message: 1 of 1

I have single gui which has push buttons, I want to call one of the pushbutton callbacks in an another pushbutton callback, so for example.

R_Norm is pushbutton tag.

I am calling it in another pushbutton callback:

r_XCallback(hObject, eventdata, handles)

I am getting this error when i run this:
         Attempt to reference field of non-structure array.

This happening in R_Norm when i do get appdata.

        c = getappdata(handles.figure1, 'appdata_c');

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us