3D Surface or Multiple Line Plots from 16 iterations of 3 column XYZ Data

1 回表示 (過去 30 日間)
Eunan McShane
Eunan McShane 2019 年 6 月 26 日
コメント済み: Eunan McShane 2019 年 7 月 1 日
Attempting to create a 3D line plot XYZ being Dark Counts/s, Pixel No., and no. of SPADS activated. Bascially I have Dark count data for 512 pixels XY line plots, however I have repeated for different number of SPAD sensors activated per pixel ranging from 1 turned on to 16 SPADs on, I was trying to find a way to create a 3D multiple line plot, or a surface plot of some kind, appreciate any help!
The attached document I've created is in XYZ format and for Z column is 1-16 depending on the data, hopefully this makes some sense to someone!
15SPAD3D contains an excerpt of the 3DDCRXYZ file for handiness.

採用された回答

Akira Agata
Akira Agata 2019 年 6 月 27 日
Like this?
data = dlmread('3DDCRXYZ.txt');
g = findgroups(data(:,3));
figure
hold on
for kk = 1:max(g)
idx = g == kk;
plot3(data(idx,2),data(idx,3),data(idx,1))
end
view(3)
xlabel('Pixel No.')
ylabel('No. of SPADS')
zlabel('Dark count');
grid on
count.png
  1 件のコメント
Eunan McShane
Eunan McShane 2019 年 7 月 1 日
Hey thanks for the answer, in fact Matlab was already doing what I wanted it to do but the scaling of some of the extreme data was making it act quite weird, I have no dealt with the extreme data and the plot looks much nicer
Thank you

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by