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
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 件)

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by