Extracting specific data for multiple mat files
古いコメントを表示
Hello. I am having around 1800 mat files that are the output of Venlodyne lidar. I have converted all of them to the PCD format as well. So, I want to extract the specific data, which is determined by specific row or column, from those files. Please help me with this question. Thank you so much for your support!
回答 (2 件)
fn = dir("save*.mat")
for i = 1:length(fn)
matobj{i} = matfile(fn(i).name)
matobj{i}.PCD % Then you can access to any portion of data and assign the results to a variable
end
5 件のコメント
Chunru
2022 年 8 月 23 日
What data you want to extract? dataPCD is an object of pointCloud. Which part of the data you want to extract?
pointCloud with properties:
Location: [16×1808×3 double]
Count: 28928
XLimits: [-10.5304 19.9285]
YLimits: [-5.1332 9.1553]
ZLimits: [-2.5690 5.3415]
Color: []
Normal: []
Intensity: [16×1808 uint8]
Chunru
2022 年 8 月 23 日
The location data has the following 3D format:
Location: [16×1808×3 double]
Which slice of data you want to extract? You might want to specify 3 indeces instead of 2.
Thanh
2022 年 8 月 24 日
Chunru
2022 年 8 月 24 日
Glad to know that.
カテゴリ
ヘルプ センター および File Exchange で Labeling, Segmentation, and Detection についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!