the variable is a array
I want x sclae from -2600 to 2500(gettable)
y scale as 0:4:40 (how to code this)
z scale in logarithmic form.
if true
% code
load('Kennfeld1.mat');
surf(Kennfeld1);
xlabel ('Achsemoment (N)');ylabel ('Diffrenz Drehzahl (rpm)');zlabel ('Zeit (std)');title('Vorderräder');

 채택된 답변

madhan ravi
madhan ravi 2018년 11월 6일

3 개 추천

load('Kennfeld1.mat');
h=gca
surf(Kennfeld1);
xlabel ('Achsemoment (N)');ylabel ('Diffrenz Drehzahl (rpm)');
zlabel ('Zeit (std)');
title('Vorderräder');
set(h,'zscale','log')

댓글 수: 5

madhan ravi
madhan ravi 2018년 11월 6일
Did it work like you wanted? Else let know
madhan ravi
madhan ravi 2018년 11월 6일
편집: madhan ravi 2018년 11월 6일
see the graph attached z axis is represented in logscale
What is ' h = gca' what do these mean?
Mark Pope
Mark Pope 2021년 9월 28일
'h = gca' just allows you to access the settings for the axis (gca stands for "get current axis") by typing h. It's not really necessary when you're also using set(); you could just do set(gca, ...).

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by