How to scale logarithmic in surface plot?

조회 수: 259 (최근 30일)
Shubham Mohan Tatpalliwar
Shubham Mohan Tatpalliwar 2018년 11월 6일
댓글: Mark Pope 2021년 9월 28일
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일
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
Gregory Manoukian
Gregory Manoukian 2021년 7월 7일
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개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by