How to scale logarithmic in surface plot?

276 vues (au cours des 30 derniers jours)
Shubham Mohan Tatpalliwar
Commenté : Mark Pope le 28 Sep 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');

Réponse acceptée

madhan ravi
madhan ravi le 6 Nov 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 commentaires
Gregory Manoukian
Gregory Manoukian le 7 Juil 2021
What is ' h = gca' what do these mean?
Mark Pope
Mark Pope le 28 Sep 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, ...).

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by