plot 3 line to connect a value on surface

15 ビュー (過去 30 日間)
Mohammad Sohel Rana
Mohammad Sohel Rana 2019 年 6 月 27 日
回答済み: KSSV 2019 年 6 月 27 日
I want to plot corresponding 3 line that connect marked (Red star) value (4,87,34) to net power, mass flow and thickness.
Thanks in advance

回答 (1 件)

KSSV
KSSV 2019 年 6 月 27 日
YOu may follow something like this:
[X,Y,Z] = peaks(50) ;
% Pick a point
[val,idx] = max(Z(:)) ;
P = [X(idx) Y(idx) Z(idx)]' ;
figure
hold on
% waterfall(X,Y,Z)
plot3(X,Y,Z,'.b')
plot3(P(1),P(2),P(3),'*r')
L1 = [P [X(idx) Y(idx) 0]'] ;
L2 = [P [X(idx) 0 Z(idx)]'] ;
L3 = [P [0 Y(idx) Z(idx)]'] ;
plot3(L1(1,:),L1(2,:),L1(3,:),'r')
plot3(L2(1,:),L2(2,:),L3(3,:),'r')
plot3(L3(1,:),L3(2,:),L3(3,:),'r')

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by