3D point plotting

2 ビュー (過去 30 日間)
Paras Choudhary
Paras Choudhary 2022 年 9 月 23 日
回答済み: Karim 2022 年 9 月 23 日
I have certain values of L and corresponding to each L value there is a value of R and Q respectively
How to plot them
I have attached values
  2 件のコメント
KSSV
KSSV 2022 年 9 月 23 日
Attach the data....image snippet will not help us to work on.
Paras Choudhary
Paras Choudhary 2022 年 9 月 23 日
L1 = 26
R = 16 ;17 ; 19 ;25 ;26 ; 27 ; 30 ; 31 ; 32
Q = 9.74 ; 11.047 ; 13.88 ;24.45 ; 26.49 ; 28.56 ; 35.44 ; 37.88 ; 40.41
L2 = 28
R = 15;16;17;19;21;22;29;30;31
Q = 7.82 ; 8.9492 ; 10.16 ;12.78 ; 15.7 ; 17.28 ; 30.55 ; 32.74 ; 34.94
sly more values are there

サインインしてコメントする。

採用された回答

Karim
Karim 2022 年 9 月 23 日
you can use the plot3 function to plot a 3D line, see below for a demonstration.
L1 = 26;
R1 = [16 ;17 ; 19 ;25 ;26 ; 27 ; 30 ; 31 ; 32];
L1 = repmat(L1,numel(R1),1);
Q1 = [9.74 ; 11.047 ; 13.88 ;24.45 ; 26.49 ; 28.56 ; 35.44 ; 37.88 ; 40.41 ];
L2 = 28;
R2 = [15;16;17;19;21;22;29;30;31];
L2 = repmat(L2,numel(R2),1);
Q2 = [7.82 ; 8.9492 ; 10.16 ;12.78 ; 15.7 ; 17.28 ; 30.55 ; 32.74 ; 34.94 ];
figure
hold on
plot3(L1,R1,Q1)
plot3(L2,R2,Q2)
xlabel('L-value')
ylabel('R-Value')
zlabel('Q-value')
grid on
view(3)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by