maximum points on the surface
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Asliddin Komilov
le 4 Mar 2020
Commenté : Asliddin Komilov
le 7 Mar 2020
On this beautiful plot I need a line that shows the maximum points
help me someone
thanks
0 commentaires
Réponse acceptée
darova
le 4 Mar 2020
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!