From owner-bug-octave at bevo dot che dot wisc dot edu Sun Dec 1 22:22:50 1996 Subject: Load function From: "John W. Eaton" To: Daniel Tourde cc: bug-octave at bevo dot che dot wisc dot edu Date: Sun, 1 Dec 1996 22:22:24 -0600 On 29-Nov-1996, Daniel Tourde wrote: : I'm trying to define variables as following : : # name: Nhh : # type: scalar : (1/0.406)^2 : # name: Nalphaalpha : # type: scalar : (1/0.282)^2 Files that are to be read with the load command are intended to be data files with numbers only, not expressions. Allowing expressions might be a useful feature, but I don't think it is necessary. Instead of using load, you could just use a script file. For example, if you have the lines Nhh = (1/0.406)^2; Nalphaalpha = (1/0.282)^2; in the file foo.m, you can type octave:13> foo at the command line to execute the statements in the file foo.m. Then the variables will be defined in the top level workspace. jwe