Question: MATLAB GUI; Hello, I have a problem with a code in MATLAB. I hope you can help me out. The question is how can I

MATLAB GUI;

Hello, I have a problem with a code in MATLAB. I hope you can help me out. The question is how can I called the specific user selection from a button panel selection function into a push button function. Here is the code that I have from the button panel selection function;

% --- Executes when selected object is changed in BoundaryConditionPanel.

function BoundaryConditionPanel_SelectionChangedFcn(hObject, eventdata, handles)

% hObject handle to the selected object in BoundaryConditionPanel

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

load('Properties.mat')

switch get(eventdata.NewValue, 'Tag')

case 'Cantilever_Toggle'

Properties.B = 1;

case 'SimplySupported_Toggle'

Properties.B = 2;

case 'FixedFixed_Toggle'

Properties.B = 3;

case 'CantileverRollerSupport_Toggle'

Properties.B = 4;

end

save('Properties.mat','Properties');

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!