help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gf undefined - ( my error ? )


From: Mike Miller
Subject: Re: gf undefined - ( my error ? )
Date: Mon, 29 Jul 2013 08:11:49 -0400

On Sun, Jul 28, 2013 at 18:10:06 -0700, pcsnow wrote:
> pkg load communications
> octave:2> I = gf([1,0,0,0;0,1,0,0;0,0,1,0;0,0,0,1])
> error: `gf' undefined near line 2 column 5
>
> I looked at several examples and I seem to be doing the right thing.

Looks right to me:

  octave:1> pkg load communications
  octave:2> I = gf([1,0,0,0;0,1,0,0;0,0,1,0;0,0,0,1])
  I =
  GF(2) array.

  Array elements =

     1   0   0   0
     0   1   0   0
     0   0   1   0
     0   0   0   1

> yum log
> [...]
> Jul 28 20:36:01 Installed: octave-communications-1.1.0-5.fc17.i686

rpm -V octave-communications shows no problems?

After "pkg load communications" do the paths from the rpm show up in
the Octave runtime path?

  octave:1> pkg load communications
  octave:2> paths = strsplit (path, ":");
  octave:3> paths (!cellfun (@isempty, regexp (paths, "communications")))
  ans =
  {
    [1,1] = 
/usr/lib/x86_64-linux-gnu/octave/packages/communications-1.1.1/x86_64-pc-linux-gnu-api-v48+
    [1,2] = /usr/share/octave/packages/communications-1.1.1
  }
  octave:3> which gf
  'gf' is a function from the file
/usr/lib/x86_64-linux-gnu/octave/packages/communications-1.1.1/x86_64-pc-linux-gnu-api-v48+/gf.oct

-- 
mike


reply via email to

[Prev in Thread] Current Thread [Next in Thread]