matlab热度图确定色标_MATLAB 颜色图函数(imagesc/scatter/polarPcolor/pcolor)

polarPcolor是MATLAB中用于绘制极坐标伪彩色图的函数,它提供了更好的视觉效果。该函数接受半径R、角度theta和颜色矩阵Z作为输入,可以自定义网格的圈数和辐条数,以及是否显示颜色条和半径标签。文章还包含了示例代码和作者信息。
摘要由CSDN通过智能技术生成

1 function [varargout] =polarPcolor(R,theta,Z,varargin)2 % [h,c] = polarPcolor1(R,theta,Z,varargin) isa pseudocolor plot of matrix3 % Z fora vector radius R and a vector angle theta.4 % The elements of Z specify the color ineach cell of the5 % plot. The goal isto apply pcolor function with a polar grid, which6 %provides a better visualization than a cartesian grid.7 %

8 %%Syntax9 %

10 % [h,c] =polarPcolor(R,theta,Z)11 % [h,c] = polarPcolor(R,theta,Z,‘Ncircles‘,10)12 % [h,c] = polarPcolor(R,theta,Z,‘Nspokes‘,5)13 % [h,c] = polarPcolor(R,theta,Z,‘Nspokes‘,5,‘colBar‘,0)14 % [h,c] = polarPcolor(R,theta,Z,‘Nspokes‘,5,‘labelR‘,‘r (km)‘)15 %

16 %INPUT17 % *R :18 % - type: float

19 % - size: [1 x Nrr ] where Nrr =numel(R).20 % -dimension: radial distance.21 % *theta :22 % - type: float

23 % - size: [1 x Ntheta ] where Ntheta =numel(theta).24 % -dimension: azimuth or elevation angle (deg).25 % - N.B.: The zero isdefined with respect to the North.26 % *Z :27 % - type: float

28 % -size: [Ntheta x Nrr]29 % - dimension: user‘s defined .

30 % *varargin:31 % - Ncircles: number of circles forthe grid definition.32 % - Nspokes: number of spokes forthe grid definition.33 % -colBar: display the colorbar or not.34 % - labelR: legend forR.35 %

36 %

37 %OUTPUT38 %

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值