I need to plot exactly this photo from my exel data. What is it's code? i what z scale as the picture

2 件のコメント

Rik
Rik 2022 年 8 月 19 日
Have a read here and here. It will greatly improve your chances of getting an answer.
It looks like you can use surf to get a plot like this. What have you tried so far?
Niloofar Moosavi
Niloofar Moosavi 2022 年 8 月 19 日
I didn't it by mesh but I want a object exactly like my picture

サインインしてコメントする。

回答 (1 件)

KSSV
KSSV 2022 年 8 月 19 日

0 投票

T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1101840/Ex12.xlsx') ;
data = table2array(T) ;
x = data(1,2:end) ;
y = data(2:end,1) ;
Z = data(2:end,2:end) ;
mesh(x,y,Z') ;

5 件のコメント

Niloofar Moosavi
Niloofar Moosavi 2022 年 8 月 19 日
Thanks but value of z in not like my picture
Rik
Rik 2022 年 8 月 19 日
You can use the XTickLabel property of the axes object.
Niloofar Moosavi
Niloofar Moosavi 2022 年 8 月 19 日
And how can I mesh the object like my picture?
Rik
Rik 2022 年 8 月 19 日
Have you read the documentation to see what properties you can edit?
Niloofar Moosavi
Niloofar Moosavi 2022 年 8 月 19 日
Yes thanks! And is there a way to change grid?

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangePolar Plots についてさらに検索

質問済み:

2022 年 8 月 19 日

コメント済み:

2022 年 8 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by