maximum points on the surface

6 次查看(过去 30 天)
On this beautiful plot I need a line that shows the maximum points
help me someone
thanks

采纳的回答

darova
darova 2020-3-4
Here is my achievement
X = xlsread('testEffx.xlsx','x');
Y = xlsread('testEffx.xlsx','y');
Z = xlsread('testEffx.xlsx','z');
%%
[zm,im] = max(Z,[],2); % find max in each row (columns direction)
ix = sub2ind(size(Z),1:length(im),im'); % convert to index
surf(X,Y,Z)
hold on
plot3(X(im),Y,Z(ix),'.y')
hold off
axis vis3d
  3 个评论
Asliddin Komilov
Asliddin Komilov 2020-3-7
don't tell me you draw the line manually...))

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by