Discussion:
directory linsting in octave
(too old to reply)
Detlef Bosau
2007-05-31 21:16:40 UTC
Permalink
Hi.

I have a simple matlab script for trace evaluation which starts with a line

files = dir;

The command results in the following error:

octave:1> files = dir;
ChSim-v1-10s500sps48sb-ms0ch0.trace Sample-0.1s5000sps8sb-ms1ch0.trace
Sample-0.1s5000sps8sb-ms0ch0.trace traceread.m
error: value on right hand side of assignment is undefined
error: evaluating assignment expression near line 1, column 7
octave:1>

Can someone give me a clue?

Thx

Detlef
David Bateman
2007-05-31 22:31:03 UTC
Permalink
Post by Detlef Bosau
Hi.
I have a simple matlab script for trace evaluation which starts with a line
files = dir;
octave:1> files = dir;
ChSim-v1-10s500sps48sb-ms0ch0.trace Sample-0.1s5000sps8sb-ms1ch0.trace
Sample-0.1s5000sps8sb-ms0ch0.trace traceread.m
error: value on right hand side of assignment is undefined
error: evaluating assignment expression near line 1, column 7
octave:1>
Can someone give me a clue?
A newer version of octave will fix this. What version are you using? The
function "readdir" might give you what you want.

D.
Detlef Bosau
2007-06-01 00:00:07 UTC
Permalink
Post by David Bateman
Post by Detlef Bosau
Hi.
I have a simple matlab script for trace evaluation which starts with a line
files = dir;
octave:1> files = dir;
ChSim-v1-10s500sps48sb-ms0ch0.trace Sample-0.1s5000sps8sb-ms1ch0.trace
Sample-0.1s5000sps8sb-ms0ch0.trace traceread.m
error: value on right hand side of assignment is undefined
error: evaluating assignment expression near line 1, column 7
octave:1>
Can someone give me a clue?
A newer version of octave will fix this. What version are you using?
2.1.40

And readdir() yields the wanted result.

Thanks!

Detlef
--
Detlef Bosau Mail: ***@web.de
Galileistrasse 30 Web: http://www.detlef-bosau.de
70565 Stuttgart Skype: detlef.bosau
Mobile: +49 172 681 9937
David Bateman
2007-06-01 06:59:07 UTC
Permalink
Post by Detlef Bosau
Post by David Bateman
Post by Detlef Bosau
Hi.
I have a simple matlab script for trace evaluation which starts with a line
files = dir;
octave:1> files = dir;
ChSim-v1-10s500sps48sb-ms0ch0.trace Sample-0.1s5000sps8sb-ms1ch0.trace
Sample-0.1s5000sps8sb-ms0ch0.trace traceread.m
error: value on right hand side of assignment is undefined
error: evaluating assignment expression near line 1, column 7
octave:1>
Can someone give me a clue?
A newer version of octave will fix this. What version are you using?
2.1.40
And readdir() yields the wanted result.
Thanks!
Detlef
The release date of Octave 2.1.40 was 20 Nov 2002!!! You seriously want
to upgrade..

D.

Loading...