help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Textscan and csv fitness data problem


From: Stuart Edwards
Subject: Re: Textscan and csv fitness data problem
Date: Mon, 1 Jan 2018 13:11:08 -0500

Hi -

While this may not be the Octave solution requested, it is a practical solution. Install R and RStudio (both freely available).  Read your csv directly and inspect it in a nice tabular format.  The first few lines are a little confusing, but the data mostly look good. Converting to a set of individual vectors should be no problem with some minor clean-up.

Stu 

On Jan 1, 2018, at 6:24 AM, Thomas Esbensen <address@hidden> wrote:

Challenge: Convert attached csv-file into vectors for timestamps, power, and heart_rate data. The file originates from a FIT-file (from a fitness device) converted via FitSDKRelease into a CSV-file.

Problem: I am not able to generate an output via textscan that corresponds to the number of lines (rows) in the csv-file. E.g. the variable DataMat generated via examples below holds values from various rows in the first line (DataMat(1,:)). It somwhow wraps around and the function in Octave is not consistent.

Hint: In OCTAVE dimensions are off. In MATLAB dimensions follow the file.
See: https://se.mathworks.com/matlabcentral/answers/375102-textscan-and-csv-fitness-data-problem



<2017-08-11-143641-ELEMNT BOLT 2779-2-0.csv>_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave


reply via email to

[Prev in Thread] Current Thread [Next in Thread]