MATLAB Answers

0

How to scale logarithmic in surface plot?

Latest activity Edited by madhan ravi
on 6 Nov 2018
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');

  0 Comments

Sign in to comment.

Tags

1 Answer

Answer by madhan ravi
on 6 Nov 2018
 Accepted Answer

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

  3 Comments

Did it work like you wanted? Else let know
see the graph attached z axis is represented in logscale

Sign in to comment.