发布网友 发布时间:2023-08-31 06:22
共2个回答
热心网友 时间:2023-09-05 02:03
x = linspace(0,2*pi,1000);
y = sin(x);
hold on;
plot(x,y,'k-');
posx = [pi/2 0.75*pi];
posy = sin(posx);
for i = 1:size(posx,2)
text(posx(i),posy(i),num2str(posy(i)));
end
热心网友 时间:2023-09-05 02:04
text(x,y,[num2str(x),',',num2str(y)])