help-octave
[Top][All Lists]
Advanced

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

Re: csvread


From: Jonathan Camilleri
Subject: Re: csvread
Date: Tue, 5 Apr 2016 21:13:37 +0200

It does work but plotting graphs results in nothing that is too meaningful as yet.  I think I would like the addpath command to allow me to have the filename searched for.

Environment variables in operating systems work in a similar manner, so I am kind of used to using path as an environment variable that is globally searched for.

Not sure if someone can request this on the bug tracker.

Jon

On 5 April 2016 at 16:18, Mike Miller <address@hidden> wrote:
On Tue, Apr 05, 2016 at 16:01:34 +0200, Jonathan Camilleri wrote:
> I think I am missing something as I try to read a CSV file to a matrix of
> some sort.
>
> >> addpath('C:\Users\slyth_000\Downloads\temp\M.Sc\data-sets\eurofxref')
> >> x = csvread('eurofxref.csv')
> error: dlmread: unable to open file 'eurofxref.csv'

Yes, you have asked about this before (with pkg, but the same insight
applies to both). The addpath function does not help you in this case.

Try either cd() to the directory where the file is or use the full file
name. To be clear, either of these should work:

  cd('C:\Users\slyth_000\Downloads\temp\M.Sc\data-sets\eurofxref')
  x = csvread ('eurofxref.csv')

or

  dir = 'C:\Users\slyth_000\Downloads\temp\M.Sc\data-sets\eurofxref';
  x = csvread (fullfile (dir, 'eurofxref.csv'))

--
mike



--
Jonathan Camilleri

Mobile (MT): ++356 7982 7113
E-mail: address@hidden
Please consider your environmental responsibility before printing this e-mail.
 
I usually reply to emails within 2 business days.  If it's urgent, give me a call.


reply via email to

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