matlab colormap help

Reply

Join Date: Jun 2006
Posts: 9
Reputation: jubleebow is an unknown quantity at this point 
Solved Threads: 0
jubleebow jubleebow is offline Offline
Newbie Poster

matlab colormap help

 
0
  #1
Nov 8th, 2006
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(['D',num2str(n),'.txt']);
% 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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Legacy and Other Languages Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC