How can I have precise coordinates

I am working with a LiDAR point cloud data and I developed a code to get each individual strip. I developed the following code.
clc;clear;
% This code will create the files for each individual strip for the given
% point cloud.
% Strip1
Point_Cloud = load('082o01a12.txt'); % Given Point Cloud
Strip_Info = unique(Point_Cloud(:,5)); % Get the Point_Source_Data which is the strip information
Point_Data_1 = find(Point_Cloud(:,5)==Strip_Info(1)); % Find points that correspond to Strip 1
Strip_1 = Point_Cloud(Point_Data_1,1:4); % Individual Strip
dlmwrite('Strip1.txt', Strip_1); % This will create a txt file to be able to use on Cloud Compare
Once I get a txt file of the data strip I have coordinates like 7.000e+03 and I want the exact coordinates. How can I do that?

 採用された回答

Walter Roberson
Walter Roberson 2015 年 12 月 14 日

0 投票

dlmwrite('Strip1.txt', Strip_1, 'Precision', '%.16g'); % This will create a txt file to be able to use on Cloud Compare

3 件のコメント

Agustin
Agustin 2015 年 12 月 15 日
So, if I want to load the file, I have to write the same notation (file = load('file.txt', 'Precision', '%.16g'))?
Walter Roberson
Walter Roberson 2015 年 12 月 15 日
No, you do not need to specify precision at the time you load.
Stephen23
Stephen23 2015 年 12 月 15 日
Agustin's "Answer" moved here:
Thank you, it worked!

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

その他の回答 (0 件)

カテゴリ

タグ

質問済み:

2015 年 12 月 14 日

コメント済み:

2015 年 12 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by