> 其他 >
用matlab画图时,怎么在图形上显示的数字随着变量的变化而变化.谢谢.

就像图片上显示的那样.把数字设置为变量.如何实现.谢谢.

人气:446 ℃ 时间:2020-05-12 08:45:04
解答
r=1;theta=[linspace(0,2*pi,200),2*pi];xx=cos(theta);yy=sin(theta);numindex=randperm(7);plot(2*r*xx,2*r*yy); %外圆hold onplot(r*xx,r*yy,'--'); %虚线圆plot(r*xx/3,r*yy/3); %原点的小圆text(0,0,num2str(nu...
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版