📄 plotnum3.m
字号:
function plotnum(x,y,z,h)
%
% plotnum(x,y,h)
%
% plots two x & y vectors using the
% sample number as the indicator rather
% than the usual crappy cross, on the
% axes with handle h
%
[D L]=size(x);
mnx=min(x);
mxx=max(x);
mny=min(y);
mxy=max(y);
mnz=min(z);
mxz=max(z);
axes(h);
for i = 1:D
text(x(i),y(i),z(i),num2str(i));
end
set(h,'Xlim',[mnx mxx],'Ylim',[mny mxy],'Zlim',[mnz mxz]);
drawnow;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -