help-octave
[Top][All Lists]
Advanced

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

Re: load for a csv file "unable to determine file format of 'fmt2_Moveme


From: Nicholas Jankowski
Subject: Re: load for a csv file "unable to determine file format of 'fmt2_Movements.csv'
Date: Fri, 24 Mar 2017 11:51:08 -0400

On Fri, Mar 24, 2017 at 10:20 AM, ssumcy <address@hidden> wrote:
hi Team,

Started learning Octave only recently. Absolutely newbie.
Am trying to load a csv file which has contents like below and am getting
error


well, csv means comma separated value, and you have no commas separating that data.

load without any options in not necessarily expecting to see formatted ascii data. it expects to see formatted data created with the save command.  you can specify a -ascii option, but even that will fail here. as you can see from 'help load', the -ascii option would expect to see "columns of numbers in text format without any header or other information.". 


you should probably check out some of the other text input functions, and see if you can adapt them to your data.

help textread
help dlmread
help csvread

my guess is textread would give you the most flexibility to tell octave what format your data is in, but you'll need to know how to specify  a format string.
https://www.gnu.org/software/octave/doc/v4.2.1/Formatted-Output.html#Formatted-Output
https://www.gnu.org/software/octave/doc/v4.2.1/Output-Conversion-for-Matrices.html#Output-Conversion-for-Matrices
https://www.gnu.org/software/octave/doc/v4.2.1/Output-Conversion-Syntax.html#Output-Conversion-Syntax
https://www.gnu.org/software/octave/doc/v4.2.1/Table-of-Output-Conversions.html#Table-of-Output-Conversions




reply via email to

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