Plot a 3d surface

1 view (last 30 days)
Niloofar Moosavi
Niloofar Moosavi on 19 Aug 2022
Commented: Niloofar Moosavi on 19 Aug 2022
I need to plot exactly this photo from my exel data. What is it's code? i what z scale as the picture
  2 Comments
Niloofar Moosavi
Niloofar Moosavi on 19 Aug 2022
I didn't it by mesh but I want a object exactly like my picture

Sign in to comment.

Answers (1)

KSSV
KSSV on 19 Aug 2022
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 Comments
Niloofar Moosavi
Niloofar Moosavi on 19 Aug 2022
Yes thanks! And is there a way to change grid?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!