I am really a beginner with Ocatve.
I have a CSV file with one column, 8760 rows. I need to load this file to octave. I tried a lot with csvread but I couldn't load the file.
I don't know where should I put the original csv file to be read.
I am using Octave3.4.3
Please help with details.....
> I have a CSV file with one column, 8760 rows. I need to load
> this file to octave. I tried a lot with csvread but I couldn't
> load the file. I don't know where should I put the original
> csv file to be read.
I have the same setup. You can put the file in a directory in
your path (type "path" at the prompt to see what is in it).
[Caveat: this didn't seem to work for me. Maybe only for
execution of a file.] Or you can give a full path to the file.
Or you can change directory and then read the file.
Here is what I did:
octave-3.2.4.exe:6> addpath c:/users/windhoal/Documents/m
warning: savepath: current path saved to ~\.octaverc
octave-3.2.4.exe:8> B = csvread("csvfile.csv")
error: dlmread: unable to open file `csvfile.csv'
error: called from:
error: C:\Octave\...\csvread.m at line 27, column 5
octave-3.2.4.exe:9> help cd
`cd' is a built-in function
-- Command: cd dir
-- Command: chdir dir
Change the current working directory to DIR. If DIR is omitted,
the current directory is changed to the user's home directory.
Changes the current working directory to `~/octave'. If the
directory does not exist, an error message is printed and the
working directory is not changed.
See also: mkdir, rmdir, dir ...
octave-3.2.4.exe:10> cd c:/users/windhoal/Documents/m
octave-3.2.4.exe:11> B = csvread("csvfile.csv")