help

Bill Denney bill at denney.ws
Mon Sep 1 22:54:48 CDT 2008


=?ISO-8859-1?Q?Sim=F3n_Lissa_ wrote:
> hi, how can i load elements of a vector from a file? because i dont
> want to write them one by one.

Hi Simon,

You say both reading and writing here.  Assuming that you mean reading,
have you tried

load ("filename");
or
x = load ("filename");

There are many more options for reading files, but that is the most
straight-forward.

If you mean writing, again there are many options, but the simplest is

save("filename")

If you give more specifics, we can help more.

Have a good day,

Bill


More information about the Help-octave mailing list