|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
load dataSorry for simple question, but i'm having troubles to import data to Ocatave (version 3.2.0).
I write A = load U:Octave\datafile.dat but Octave gives error message. In older versions I think it was possible to load data into certain variable with above command? |
|
|
Re: load dataOn Fri, Jul 03, 2009 at 01:45:36AM -0700, agronomist wrote:
> > Sorry for simple question, but i'm having troubles to import data to Ocatave > (version 3.2.0). > > I write > > A = load U:Octave\datafile.dat > > but Octave gives error message. What error message? Thomas _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: load dataOn Fri, Jul 3, 2009 at 10:45 AM, agronomist<eero.schroderus@...> wrote:
> > Sorry for simple question, but i'm having troubles to import data to Ocatave > (version 3.2.0). > > I write > > A = load U:Octave\datafile.dat > > but Octave gives error message. In older versions I think it was possible to > load data into certain variable with above command? > -- > Using result values together with command style call is no longer supported. Use A = load("U:Octave\datafile.dat"); -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: load dataCommand A = load("U:Octave\datafile.dat"); gives answer: unable to find file U:Octave Although that I know the file is in that folder. Octave is installed in the computer C drive and U drive is network drive in which my personal files are. I can not save anything in the C drive.
|
|
|
Re: load dataagronomist wrote:
> > Command > > A = load("U:Octave\datafile.dat"); > > gives answer: unable to find file U:Octave > > Although that I know the file is in that folder. Octave is installed in the > computer C drive and U drive is network drive in which my personal files > are. I can not save anything in the C drive. > > > > Jaroslav Hajek-2 wrote: >> On Fri, Jul 3, 2009 at 10:45 AM, agronomist<eero.schroderus@...> wrote: >>> Sorry for simple question, but i'm having troubles to import data to >>> Ocatave >>> (version 3.2.0). >>> >>> I write >>> >>> A = load U:Octave\datafile.dat >>> >>> but Octave gives error message. In older versions I think it was possible >>> to >>> load data into certain variable with above command? >>> -- >>> >> Using result values together with command style call is no longer >> supported. Use >> A = load("U:Octave\datafile.dat"); >> >> Your command should read A = load("U:\Octave\datafile.dat"); not A = load("U:Octave\datafile.dat"); (mind the backslash after the drive letter). Michael _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: load datatyping
A = load("U:\Octave\datafile.dat"); gives: warning: unrecognized escape sequence '\O' -- converting to 'O' error: load: unable to find file U:Octave It seems like Octave for some reason cant handel our network drive system. Your command should read A = load("U:\Octave\datafile.dat"); not A = load("U:Octave\datafile.dat"); (mind the backslash after the drive letter). Michael _______________________________________________ Help-octave mailing list Help-octave@octave.org https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
RE: load data|-----Original Message-----
|From: agronomist [mailto:eero.schroderus@...] |Sent: Tuesday, July 07, 2009 8:14 AM |To: help-octave@... |Subject: Re: load data | | |typing |A = load("U:\Octave\datafile.dat"); |gives: | |warning: unrecognized escape sequence '\O' -- converting to 'O' |error: load: unable to find file U:Octave use: A = load("U:\\Octave\\datafile.dat") or A = load('U:\Octave\datafile.dat') Check out the octave manual to better understand how strings are handled http://www.gnu.org/software/octave/doc/interpreter/Strings.html#Strings _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: load dataagronomist wrote:
> typing > A = load("U:\Octave\datafile.dat"); > gives: > > warning: unrecognized escape sequence '\O' -- converting to 'O' > error: load: unable to find file U:Octave > > It seems like Octave for some reason cant handel our network drive system. > > > > Your command should read > A = load("U:\Octave\datafile.dat"); > > not > > A = load("U:Octave\datafile.dat"); > > (mind the backslash after the drive letter). > > Michael Sorry, my bad, it should read either A = load("U:\\Octave\\datafile.dat"); or A = load('U:\Octave\datafile.dat'); So you either use the Octave-style double quotes to delimit strings, then you have to escape the \ with an additional \, or you use single quotes ' and only need one \ in a Windows/DOS path. Michael _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: load datatyping A = load("U:\Octave\datafile.dat"); gives: warning: unrecognized escape sequence '\O' -- converting to 'O' error: load: unable to find file U:Octave It seems like Octave for some reason cant handel our network drive system. No, the problem is that within double-quoted strings \ is interpreted as part of escape sequences. Actually you should have gotten the same error when you used load("U:Octave\datafile.dat")---are you sure that that's what you used before and that there was no error message? You should double up the backslash: A = load("U:\\Octave\\datafile.dat"); _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
| Free embeddable forum powered by Nabble | Forum Help |