| | |
matlab colormap help
![]() |
•
•
Join Date: Jun 2006
Posts: 9
Reputation:
Solved Threads: 0
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
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
![]() |
Similar Threads
- MatLab Forum? (DaniWeb Community Feedback)
- Matlab Help (Computer Science)
- Translating from Matlab to C (C)
- basic matlab question (Computer Science)
- translation of Pascal script into matlab (Pascal and Delphi)
- Building D.L.L in Matlab (Visual Basic 4 / 5 / 6)
Other Threads in the Legacy and Other Languages Forum
- Previous Thread: adding bit stuffing in NRZI algorithms (matlab)
- Next Thread: hi all!
| Thread Tools | Search this Thread |





