making a color plot with 3 matrices
Ältere Kommentare anzeigen
i have 2 matrices as E(43,30619) and C(43,30619) and an altitude array as alt(43,1), E and C is related to altitude i want to plot a color plot in which put E ax X axis and C as Y axis and alt determines the color of points. i have used below script, but i couldn't get the plot i was expecting.
can any one please help me.
thank you
Z = alt;
[dummy ID]=sort(Z);
colors=colormap(jet(length(Z)));
% figure
d=0;
for i=1:length(Z)
X = EE(i,:);
Y =C_2(i,:);
plot(X(i),Y(i),'.','Color',colors(ID(i),:));
hold on
d=d+1;
end;
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Graphics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!