📄 showfields.m
字号:
% showfields.mfigure(2), clf reset, colormap(jet), hold onset(gca,'ButtonDownFcn','clickhandler')hand1 = []; hand2 = [];axis equal, axis(axvals(1:4)+[-0.5 0.5 -0.5 0.5]), circpts = 0:pi/20:2*pi;xpts = cos(circpts);ypts = sin(circpts);colors = 'wcymg';for i=1:NUNITS c = colors(ceil(rand(1,1)*length(colors))); hand1(i)=plot(xpts*sigmavals(i,1)+xcenters(i),ypts*sigmavals(i,2)+ycenters(i),c); hand2(i)=plot(xcenters(i),ycenters(i),[c '+']);endset(hand1,'ButtonDownFcn','clickhandler')set(hand2,'ButtonDownFcn','clickhandler')xlabel('x'),ylabel('y')hpt = plot(-5,-5,'r*'); % used by clickhandlerdrawnowuicontrol('Style','Pushbutton','Position',[0 0 50 20], ... 'String','Recolor', ... 'CallBack','recolor_fields')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -