How to scale logarithmic in surface plot?

200 visualizaciones (últimos 30 días)
Shubham Mohan Tatpalliwar
Shubham Mohan Tatpalliwar el 6 de Nov. de 2018
Comentada: Mark Pope el 28 de Sept. de 2021
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');

Respuesta aceptada

madhan ravi
madhan ravi el 6 de Nov. de 2018
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 comentarios
Gregory Manoukian
Gregory Manoukian el 7 de Jul. de 2021
What is ' h = gca' what do these mean?
Mark Pope
Mark Pope el 28 de Sept. de 2021
'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, ...).

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Discrete Data Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by