[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing save and load locations?
From: |
Markus Bergholz |
Subject: |
Re: Changing save and load locations? |
Date: |
Tue, 19 Jun 2012 23:49:18 +0200 |
On Tue, Jun 19, 2012 at 11:06 PM, bofonomo <address@hidden> wrote:
> Hello all Octavians,
>
> When I started using octave and tried to save matrix as a csv file, and
> originally by specifying a path as well as the file name: such as
> "c:\pathdirectory\file.csv" and got errors.
what kind of errors?
cvswrite('e:\folder1/test.csv',b)
works for me when saving matrix b as csv file. but i'm not so familar
with windows.
>
> It worked only when the file was simply "file.csv", however I had no idea
> where this file was saved,
generally it will be saved at the place where you are with octave.
just type 'ls' to see where you are.
> so I did a search and found it in "C:\Users\JJ"
> which is odd as octave is saved in
> "D:\Programs\OctaveGNU\Octave3.6.1_gcc4.6.2"
>
> So I've been simply using the "C:\Users\JJ" for everything I do, i.e. if I
> need to load a file I'll put it there and then load it in Octave GNU.
>
> Is there a way of specifying the save location? I've found this page:
> http://www.obihiro.ac.jp/~suzukim/masuda/octave/html3/octave_74.html#SEC121
>
> and tried the savepath function and it only returns this:
> warning: savepath: current path saved to ~\.octaverc
hm, i've no idea how savepath works..it just return errors for me.
addpath works fine.
>
> any help would be great.
>
however....what did this do?
% Windows
exportpath = 'e:\folder1/projectb';
b=rand(3,3);
csvwrite(sprintf('%s/test.csv', exportpath),b)
% Linux
exportpath = '/home/marques/Downloads/';
b=rand(3,3);
csvwrite(sprintf('%s/test.csv', exportpath),b)
> Ta
>
>
> --
> View this message in context:
> http://octave.1599824.n4.nabble.com/Changing-save-and-load-locations-tp4630820.html
> Sent from the Octave - General mailing list archive at Nabble.com.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
--
icq: 167498924
XMPP|Jabber: address@hidden