[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error: number of rows must match (2 != 1) ... help
From: |
Søren Hauberg |
Subject: |
Re: error: number of rows must match (2 != 1) ... help |
Date: |
Mon, 2 Feb 2004 16:32:59 +0100 |
User-agent: |
Internet Messaging Program (IMP) 4.0-cvs |
Citat Pol <address@hidden>:
[cut cut]
> error: number of rows must match (2 != 1) near line 21, column 37
> error: evaluating assignment expression near line 21, column 5
> error: evaluating if command near line 20, column 1
> error: called from `multipath' in file
> `/home/pol/.octave/m/edge/multipath.m' error: evaluating assignment
> expression near line 12, column 9 error: near line 12 of file
> `/home/pol/.octave/m/edge/progbruit.m'
> octave:1>
>
> The line 21 in multipath.m is:
> z=[-10 -8 a(2) -6 a(4) -4 a(5) 0 a(7:8) 0 a(10:11) -4 a(13:148) -8
> a(150) -9 a(151:155) -10 a(157:170) -12 a(172:199) -14];
>
> I dont get where is the error ?
My guess (and it is a guess) is that you need the transpose of 'a' instead of
'a'. From my count column 37 is 'a(7:8)'. Is a(7:8) a row or a column vector?
If it's a row vector, then that's you're problem. If it's a column vector, then
I don't know what to do.
>
> someone can help me ?
I hope I did :-)
Soren Hauberg
>
> Thanks alot.
>
> -pol-
>
>
>
> -------------------------------------------------------------
> 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
> -------------------------------------------------------------
>
>
>
--
Knibling, det gode gamle håndværk med "pinde", er rigtig kommet på mode igen
-------------------------------------------------------------
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
-------------------------------------------------------------