matlab中画图怎么把点显示出来

2025-02-18 17:10:04
推荐回答(1个)
回答1:

close
all;
clear
all;
%
如果你想对已经画好的点进行设置
figure;
hold
on;
for
i
=
1
:
10
plot(
i,
i,
'*',
'tag',
[
'point',
num2str(
i
)
]
);
%
或者在这里记下每个点对象的句柄
%
h(
i
)
=
plot(
i,
i,
'*'
);
%
后面直接set(
h(
i
),
'visible',
'off'
)