06.08.2013 Views

内容简介作者简介 - 科学与工程计算系

内容简介作者简介 - 科学与工程计算系

内容简介作者简介 - 科学与工程计算系

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10.3.3 用户菜单的属性<br />

10.3.3.1 回调属性和菜单名<br />

图 10.3-3<br />

(1)菜单名属性<br />

(2)回调属性<br />

【例 10.3.3.1-1】本例的目标是:在图形窗上自制一个名为【Test】的“顶层菜单项”;当用<br />

鼠标点动该菜单项时,将产生一个带分格的封闭坐标轴。通过本例说明:(A)回调属性的<br />

运作机理;(B)用户顶层菜单项的制作(C)uimenu 属性的设置方法;(D)复杂字符串<br />

的构成方法和注意事项。<br />

(1)<br />

grid on,set(gca,'box','on')<br />

图 10.3-4<br />

(2)<br />

eval('grid on,set(gca,''box'',''on'')')<br />

(3)<br />

uimenu('Label','Test','Callback','grid on,set(gca,''box'',''on''),')<br />

5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!