채택된 답변

darova
darova 2020년 3월 4일

0 개 추천

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월 5일
편집: Asliddin Komilov 2020년 3월 5일
thanks, but why its not a stright line? its not so beautiful anymore, please make the line stright.
darova
darova 2020년 3월 5일
I used this program
Asliddin Komilov
Asliddin Komilov 2020년 3월 7일
don't tell me you draw the line manually...))

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

태그

질문:

2020년 3월 4일

댓글:

2020년 3월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by