How to highlight a row in a surface plot?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Shubham Mohan Tatpalliwar
am 4 Feb. 2019
Kommentiert: Indira
am 21 Okt. 2020
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 Kommentare
Akzeptierte Antwort
KSSV
am 4 Feb. 2019
[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 Kommentar
Indira
am 21 Okt. 2020
Hi KSSV,
If I have X and Y as vectors and Z a matrix of mxn?
Thanks for your support.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!