Results 1 to 2 of 2

Thread: octave csvread

  1. #1
    Join Date
    May 2010
    Beans
    36

    octave csvread

    I'm new to octave having been using matlab.

    I'm trying to read a csv file that has dates and a header. I get an error:


    error: `f' undefined near line 32 column 16
    error: evaluating argument list element number 1
    error: evaluating argument list element number 1


    Anyone know what the problem is? I tried to read it w/o the header but same problem. Could it be a date problem?

  2. #2
    Join Date
    Sep 2007
    Beans
    383
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: octave csvread

    csvread is part of the io package, type:
    Code:
    pkg list
    and check that there is an "*" next to io, an asterisk next to a package name means it's loaded and ready to use. If not, type
    Code:
    pkg load io
    If io is already loaded, maybe (I'm guessing here) the csv file is not in the path of Octave. In this case, type
    Code:
    path
    and copy the csv file to any of the directories in the Octave path.

    Hope that helps, let's know if it works.
    This should be a sticky, or a bug 'cos it ain't a feature

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •