matlab 作图 虚线太长,matlab 极坐标绘图 在matlab中,用polar画的图形,如何使虚线圆多显示几个?...
滿意答案
iredwood
推薦于 2018.12.26
采納率:52%????等級:12
已幫助:13535人
打開polar.m 文件,路徑可通過輸入 which polar 命令得到。
其中修改下面這段代碼,可以控制虛線圓的顯示個數。其中rticks 為控制顯示個數的參量。每隔0.1畫一個,這樣的話應該是畫10個,所以將rticks = 10 即可實現。
% draw radial circles
c82 = cos(90 * pi / 180);
s82 = sin(90 * pi / 180);
rticks = 10; %修改
rinc = (rmax - rmin) / rticks;
for i = (rmin + rinc) : rinc : rmax
hhh = line(xunit * i, yunit * i, 'LineStyle', ls, 'Color', tc, 'LineWidth', 1, ...
'HandleVisibility', 'off', 'Parent', cax);
text((i + rinc / 20) * c82, (i + rinc / 20) * s82, ...
[' ' num2str(i)], 'VerticalAlignment', 'bottom', ...
'HandleVisibility', 'off', 'Parent', cax);
end
10分享舉報
總結
以上是生活随笔為你收集整理的matlab 作图 虚线太长,matlab 极坐标绘图 在matlab中,用polar画的图形,如何使虚线圆多显示几个?...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 三大运营商布局金融的套路不同,还能否搭上
- 下一篇: VS项目属性的一些配置项的总结(持续增加