This commit is contained in:
2025-10-24 11:42:36 +08:00
parent 513e92c60c
commit 3907fdf5b1
7 changed files with 38 additions and 0 deletions

4
kongjian5.m Normal file
View File

@@ -0,0 +1,4 @@
h1=uicontrol(gcf,'Style','listbox','String','red|blue|green|yellow|white',...
'Position',[100,100,100,80],'Callback',...
['cbcol=[''r'',''b'',''g'',''y'',''w''];',...
'set(gcf,''color'',cbcol(get(h1,''Value'')))']);