📄 test_toggle_callback.m
字号:
function test_toggle_callback
% Find the state of the toggle button
state = get(gcbo,'Value');
% Place the value into the text field
Hndl = findobj(gcbf,'Tag','Label1');
if state == 0
set (Hndl,'String','Off');
else
set (Hndl,'String','On');
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -