labelling the colormap and adjusting the x label of a 3D surface plot

조회 수: 1 (최근 30일)
Andrew Alkiviades
Andrew Alkiviades 2012년 10월 15일
Hi I am trying to plot a 3D surface plot in matlab with a colorbar.
I would like to know how to
1) label the title of the colorbar
2) change the axis tick labels
The important parts of my code are number_panels = 1:100:500; number_turbines = 0; number_batteries = 0:300:1700;
for idx_number_panels = 1:length(number_panels)
for idx_number_turbines = 1:length(number_turbines)
for idx_number_batteries = 1:length(number_batteries)
for h=2:3 %# hours
A = squeeze(total_annual_cost)
B = squeeze(total_renewables_penetration)
figure;
surface(A,B)
I am trying to change the x and y axis ticks from the intervals of the for loop to actual numbers that represent each interval.
I can't seem to find any of the above in the documentation
Thank you

답변 (0개)

카테고리

Help CenterFile Exchange에서 Colorbar에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by