How to highlight a row in a surface plot?
10 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
KSSV
2019 年 2 月 4 日
[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
2020 年 10 月 21 日
Hi KSSV,
If I have X and Y as vectors and Z a matrix of mxn?
Thanks for your support.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!