Need to use some data out of a cell array for my pcread command
조회 수: 1 (최근 30일)
이전 댓글 표시
hey guys, actually im using a cell array like C=(cloud1.pcd,cloud2.pcd,cloud3.pcd,...), all of this are pointclouds. so C(1,1) means cloud1.pcd
Now i need to use the pcread command to read every single part of the array and implement it in my System, unfortunatly i somehow cant use C(1,1) in my command
cloudC=pcread(['C:\users\CV-01\Desktop\C(1,1)'])
any clue how to avoid/use it? Kind regards Dominik
댓글 수: 0
답변 (1개)
Jan
2018년 6월 6일
편집: Jan
2018년 6월 6일
C=(cloud1.pcd,cloud2.pcd,cloud3.pcd,...)
This is not a cell array. Do you mean a cell string, which contains file names?
C = {'cloud1.pcd', 'cloud2.pcd', 'cloud3.pcd'}
Or is cloud1 a struct and you want the field pcd?
Please post the inputs using valid Matlab syntax. Then the readers do not have to guess, what you want.
Then an answer might be:
cloudC = pcread(fullfile('C:\users\CV-01\Desktop\', C{1,1}))
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Point Cloud Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!