我的这个程序编译没错,但是为什么不能出现快捷菜单呢
y=2*sin(5*x).*sin(x);h1=plot(x,y);
hc=uicontextmenu;
hls=uimenu(hc,'label','线型');
hlw=uimenu(hc,'label','线宽');
uimenu(hls,'label','虚线','callback','set(h1,''linestyle'','':'');');
uimenu(hls,'label','实线','callback','set(h1,''linestyle'',''-'');');
uimenu(hlw,'label','加宽','callback','set(h1,''linewidth'',2);');
uimenu(hlw,'label','变细','callback','set(h1,''linewidth'',0.5);');