Viewing data in octave


#1

Ive been trying to view some data stored in a .dat file using octave ,
Ive
followed Eric’s instruction to add
LOADPATH=":~/gr-build/gnuradio-core/src/utils";

in octaverc file and i typed in octave

octave:1> d = read_complex_binary(‘received.dat’, 1e6);
error: `read_complex_binary’ undefined near line 1 column 5
error: evaluating assignment expression near line 1, column 3

can some help me with this error

thanks in advance

ziad

View this message in context:
http://www.nabble.com/viewing-data-in-octave-tf4007793.html#a11381721
Sent from the GnuRadio mailing list archive at Nabble.com.


#2

Sure, i would make sure that LOADPATH is actually correct. You want to
make sure it actually has the GNU Radio octave scripts in it.

Do:
ls -l ~/gr-build/gnuradio-core/src/utils

and you should see something like:
total 136
-rw-r–r-- 1 gnychis gnychis 1491 2007-06-18 09:54 cool.m
-rw-r–r-- 1 gnychis gnychis 1254 2007-06-18 09:54 db_width.m
-rw-r–r-- 1 gnychis gnychis 1337 2007-06-18 09:54 filter_tools.m

If the path is incorrect, you will get an error like:
ls: /home/gnychis/gr-build/gnuradio-core/src/utils: No such file or
directory

Basically you want to set the loadpath correctly to point to a place
where you keep the GNU Radio source code.

  • George

#3

George N. wrote:

Sure, i would make sure that LOADPATH is actually correct. You want
to make sure it actually has the GNU Radio octave scripts in it.

Do:
ls -l ~/gr-build/gnuradio-core/src/utils

Different versions of octave require very different formats for the
loadpath. The only thing that works on my version of octave is the
following format:

addpath("/home/matt/octave-bin")
addpath("/home/matt/gnuradio/gnuradio-core/src/utils")

Matt


#4

Thank you guys, it worked

Matt E. wrote:

loadpath. The only thing that works on my version of octave is the
Discuss-gnuradio mailing list
removed_email_address@domain.invalid
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


View this message in context:
http://www.nabble.com/viewing-data-in-octave-tf4007793.html#a11390722
Sent from the GnuRadio mailing list archive at Nabble.com.