怎么给matlab赢plot函数画出来离散点加备注;比如:我想给图中的点标上1234........

2025-04-09 08:46:40
推荐回答(1个)
回答1:

clc;clear;
x=rand(1,9);
y=rand(1,9);
plot(x,y,'*');
text(x,y,arrayfun(@(x)['  ' num2str(x)],1:length(x),'UniformOutput',0))