[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
error: `eig' undefined near line 5 column 7
From: |
Rich Shepard |
Subject: |
error: `eig' undefined near line 5 column 7 |
Date: |
Fri, 30 Jul 2004 17:49:17 -0700 (PDT) |
I'm brand-new at using octave. I need to calculate the principal
eigenvector for a symetrical matrix. For the moment, it's 8x8. The installed
version of octave is 2.1.35; I downloaded 2.1.71 yesterday but haven't yet
upgraded.
I wrote a short shell script:
#! /usr/bin/octave -pf
# calculate eigenvector for Columbia Gateway scoping.
A = [1.000,0.143,0.333,9.000,0.167,0.200,0.500,0.250;
7.000,1.000,0.200,9.000,0.333,0.143,5.000,4.000;
3.000,5.000,1.000,5.000,0.250,0.167,1.000,3.000;
0.111,0.111,0.200,1.000,0.143,0.125,0.125,0.200;
6.000,3.000,4.000,7.000,1.000,2.000,0.500,4.000;
5.000,7.000,6.000,8.000,0.500,1.000,0.333,0.333;
2.000,0.200,1.000,8.000,2.000,3.000,1.000,1.000;
4.000,0.250,0.333,5.000,0.250,3.000,1.000,1.000];
foo = eig(A);
When I run it this is what I see:
address@hidden ~]$ ./gateway.oct
GNU Octave, version 2.1.35 (i386-redhat-linux-gnu).
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 John W. Eaton.
This is free software with ABSOLUTELY NO WARRANTY.
For details, type arranty'.
*** This is a development version of Octave. Development releases
*** are provided for people who want to help test, debug, and improve
*** Octave.
***
*** If you want a stable, well-tested version of Octave, you should be
*** using one of the stable releases (when this development release
*** was made, the latest stable version was 2.0.16).
error: ig' undefined near line 5 column 7
error: evaluating index expression near line 5, column 7
error: evaluating assignment expression near line 5, column 5
What have I missed?
Thanks,
Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
<http://www.appl-ecosys.com>
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- error: `eig' undefined near line 5 column 7,
Rich Shepard <=
- Re: error: `eig' undefined near line 5 column 7, Dmitri A. Sergatskov, 2004/07/30
- error: `eig' undefined near line 5 column 7, John W. Eaton, 2004/07/31
- Re: error: `eig' undefined near line 5 column 7, Rich Shepard, 2004/07/31
- Re: error: `eig' undefined near line 5 column 7, Dmitri A. Sergatskov, 2004/07/31
- Re: error: `eig' undefined near line 5 column 7, Rich Shepard, 2004/07/31
- Re: error: `eig' undefined near line 5 column 7, Rich Shepard, 2004/07/31
- Re: error: `eig' undefined near line 5 column 7, Geraint Paul Bevan, 2004/07/31
- Re: error: `eig' undefined near line 5 column 7, Rich Shepard, 2004/07/31
- Re: error: `eig' undefined near line 5 column 7, Geraint Paul Bevan, 2004/07/31