maximum points on the surface

 Accepted Answer

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 Comments

Asliddin Komilov
Asliddin Komilov on 5 Mar 2020
Edited: Asliddin Komilov on 5 Mar 2020
thanks, but why its not a stright line? its not so beautiful anymore, please make the line stright.
I used this program
don't tell me you draw the line manually...))

Sign in to comment.

More Answers (0)

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!