基于Matlab绘制方向强度数据风玫瑰图表

✅作者简介:热爱科研的Matlab仿真开发者,修心和技术同步精进,matlab项目合作可私信。

🍎个人主页:Matlab科研工作室

🍊个人信条:格物致知。

更多Matlab仿真内容点击👇

智能优化算法       神经网络预测       雷达通信       无线传感器        电力系统

信号处理              图像处理               路径规划       元胞自动机        无人机 

⛄ 内容介绍

为了绘制风玫瑰图,通过实例详细介绍了利用Matlab实现对风向,风速数据的自动提取,自动处理,自动绘图和自动输出,与其他方法相比,该方法通用性强,易于移植,输出图形美观,可实现对任意台站,任意时段风玫瑰图的绘制和输出

⛄ 部分代码

clc; clear; close all;

Options = {'anglenorth',0,... 'The angle in the north is 0 deg (this is the reference from our data, but can be any other)

           'angleeast',90,... 'The angle in the east is 90 deg

           'labels',{'N (0°)','NE (45°)','E (90°)','SE (135°)','S (180°)','SW (225°)','W (270°)','NW (315°)'},... 'If you change the reference angles, do not forget to change the labels.

           'freqlabelangle','auto',...

           'legendtype',0,...

           'min_radius',0.25,...

           'titlestring',''};

       

ax(1) = subplot(1,3,1);

[speed,direction] = WindRandomDistrib(8760,20);

[figure_handle,count,speeds,directions,Table] = WindRose(direction,speed,[Options,{'axes',ax(1)}]);

subplot(1,3,2);

[speed,direction] = WindRandomDistrib(8760,30);

[figure_handle,count,speeds,directions,Table] = WindRose(direction,speed,[Options,{'axes',gca}]);

[speed,direction] = WindRandomDistrib(8760,30);

[figure_handle,count,speeds,directions,Table] = WindRose(direction,speed,[Options,{'axes',subplot(1,3,3)}]);

⛄ 运行结果

⛄ 参考文献

[1]张立波. 基于Matlab的风玫瑰图绘制[J]. 电脑编程技巧与维护, 2012(18):3.

⛄ 完整代码

❤️部分理论引用网络文献,若有侵权联系博主删除

❤️ 关注我领取海量matlab电子书和数学建模资料

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

matlab科研助手

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值