jubleebow 0 Newbie Poster

Hi
anyone knows how to add colormap to my plots on the polar graph?
thx


title('Hodograph Displaying Change of Wind Speed and Direction with Height','Fontsize',12)
% change working directory to data directory
cd C:\weatherdata\total
number_of_files=length(dir)-4;
for n=1:number_of_files
s=load();
% specify wind speed and direction variables
wdir = s(12,:);
speed = s(13,:);
hgt = s(11,:);
% change wind direction to radians for polar command
rdir = wdir * pi/180;
%change feet to km
alt = hgt * 0.0003048;
% define number of sets coordinates read from data file
[kmax wmax]=size(wdir);
for j = (1:wmax),

if wdir(1,j) == 99 ||speed(1,j) == 99
% Do nothing
else
% plot points
polargeo(rdir(1,j),speed(1,j),'*');
% prevent new plots from replacing old plots
hold on;
end
end
end

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.