color based on variables
Show older comments
Hi
I'm trying to do color grading based on x axis valeus
here is the script I'm trying to type
%% scattering sst against wind speed
h(1) = figure;
x = reshape(mean_MAx_SST,[],1);
y = reshape(mean_MAx_W,[],1);
z = reshape(Alat,[],1);
m = 20; %size
szv = repmat(m,length(x),1);
CV = jet (length(x));
scatter3 (x,y,z,szv,CV,'filled');
grid on
hold on
colormap (jet)
xlabel ('Mean SSTmax')
ylabel ('Wind speed m/s')
zlabel ('Lattitudes')
colorbar('Direction','reverse')
title (colorbar,'SST Degrees C')
xmin = min(x(:));
xmax = max(x(:));
caxis([xmin,xmax]);
xticks(29:0.1:31.5)
%%%%%%%%%%%%%%%%%%
The result is illogic fro me
I don't know what was my mistake

Accepted Answer
More Answers (0)
Categories
Find more on Graphics Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!