Hello all,
I have done some calculation and in the result i have created a surface plot.
Actually the plot is divided in two separate matrix and i am jus adding them together to form a whole surface plot
How could i show the line of separation. I want to highlight this line in Surface plot and i know the row index.
Please suggest me any function the expected picture can be seen in the attachments.
Thank you

댓글 수: 4

If you know the row index then:
plot(matrix(index,:),'--k') % just give it a try
it is forming some where down. and not at exact point
madhan ravi
madhan ravi 2019년 2월 4일
If you could share the data it would be easy to analyse what’s going on.
its very big with lot of files to be loaded in a program so i cant share it

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

 채택된 답변

KSSV
KSSV 2019년 2월 4일

2 개 추천

[X,Y,Z] = peaks(100) ;
% seperate here (pick some row randomly)
idx = randsample(100,1) ;
figure
hold on
surf(X,Y,Z) ;
plot3(X(idx,:),Y(idx,:),Z(idx,:),'r','LineWidth',3)

댓글 수: 1

Indira
Indira 2020년 10월 21일
Hi KSSV,
If I have X and Y as vectors and Z a matrix of mxn?
Thanks for your support.

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

추가 답변 (0개)

카테고리

댓글:

2020년 10월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by