Respuesta aceptada

darova
darova el 4 de Mzo. de 2020

0 votos

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 comentarios

Asliddin Komilov
Asliddin Komilov el 5 de Mzo. de 2020
Editada: Asliddin Komilov el 5 de Mzo. de 2020
thanks, but why its not a stright line? its not so beautiful anymore, please make the line stright.
darova
darova el 5 de Mzo. de 2020
I used this program
Asliddin Komilov
Asliddin Komilov el 7 de Mzo. de 2020
don't tell me you draw the line manually...))

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 4 de Mzo. de 2020

Comentada:

el 7 de Mzo. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by