【MATLAB】MATLAB 可视化之极坐标图

本文翻译自MATLAB官方文档,介绍了如何使用MATLAB进行极坐标图的绘制,包括使用polarplot绘制线条,polarscatter绘制散点图,polarhistogram绘制直方图,compass绘制箭头图以及ezpolar的便捷绘图功能。
摘要由CSDN通过智能技术生成

翻译自 MATLAB 官方文档

polarplot : 在极坐标中绘制线条

theta = 0:0.01:2*pi;
rho = sin(2*theta).*cos(2*theta);
polarplot(theta,rho)

xx

polarscatter:极坐标中的散点图

th = pi/4:pi/4:2*pi;
r = [19 6 12 18 16 11 15 15];
polarscatter(th,r)

xx

polarhistogram : 极坐标中的直方图

theta = [0.1 1.1 5.4 3.4 2.3 4.5 3.2 3.4 5.6 2.3 2.1 3.5 0.6 6.1];
polarhistogram(theta,6)

x

compass : 绘制从原点发射出的箭头

rng(0,'twister') % initialize random number generator
M = randn(20,20);
Z = eig(M);

figure
compass(Z)

xx

ezpolar:易用的极坐标绘图函数

figure
ezpolar('1+cos(t)')

xx

  • 18
    点赞
  • 104
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值