Read variables and draw notepad txt file on Matlab

조회 수: 3 (최근 30일)
Tayfun Çelebi
Tayfun Çelebi 2017년 3월 13일
댓글: Tayfun Çelebi 2017년 3월 14일
There is a pointcloud.txt and it consist of 123 row and 3 coloumn.(Id x y) Firstly I imported to workspace but i can not draw it.how can I do it.

채택된 답변

Walter Roberson
Walter Roberson 2017년 3월 13일
Note that you can use pcshow() with an N x 3 matrix of coordinates.
You do not appear to have any z coordinates, so I have to wonder whether you really have a pointcloud. Perhaps you should scatter(x(:), y(:)) ?
  댓글 수: 6
Walter Roberson
Walter Roberson 2017년 3월 14일
num = csvread('pointcloud (1).txt', 1, 0);
xyz = num(:, 2:4);
scatter3(xyz(:, 1),xyz(:,2),xyz(:,3))
Tayfun Çelebi
Tayfun Çelebi 2017년 3월 14일
Thank you,this solved it

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Tayfun Çelebi
Tayfun Çelebi 2017년 3월 14일
My text file is this

카테고리

Help CenterFile Exchange에서 Point Cloud Processing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by