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 %