Getting statistical data from ASCII files in matlab

Feel free to ask any question here
Post Reply
K40555
Posts: 11
Joined: Fri Feb 10, 2017 1:42 pm

Getting statistical data from ASCII files in matlab

Post by K40555 »

Hi,

After I sample a couple of clouds in CC, saved them as ASCII files I want to read these files in matlab to obtain statistical data. Does anyone know a good way to do this or if there are any built in functions to do so in matlab?
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Getting statistical data from ASCII files in matlab

Post by daniel »

It's a long time since I last used Matlab, but I remember reading a column-based ASCII file was really easy. Something like:

Code: Select all

A = fprintf(fileID,'%f %f %f %f %f %f\n');
Where you put as many '%f' as there are columns in the file.

(see https://fr.mathworks.com/help/matlab/ref/fscanf.html).
Daniel, CloudCompare admin
Post Reply