[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: linsolve
From: |
Mike Miller |
Subject: |
Re: linsolve |
Date: |
Tue, 13 Oct 2015 12:06:17 -0400 |
On Tue, Oct 13, 2015 at 11:55:57 -0400, James Sherman Jr. wrote:
> On Tue, Oct 13, 2015 at 9:17 AM, Robert Setif <address@hidden> wrote:
>> Hello !
>> I have a problem with linsolve.
>> I work with Octave 4.0.0 and Windows 7 64 bits
>> M=[4,1;2,3] m=[9,7]
>> mldivide(M,m') ok [2;1]
>> id with M\m'
>> But all commands with linsolve M and m ou m' product an error->
>>>> linsolve(M,m')
>> error: 'trans_A' undefined near line 103 column 7
>> error: called from
>> linsolve at line 103 column 3
>> Thank you very much.
>> Best regards.
>>
>> _______________________________________________
>> Help-octave mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/help-octave
>>
>
> It seems that there is a bug with processing the options inside the
> function. Inside the if nargin statement on line 83 is where
> "trans_A" is defined, but if there are no options, it is never defined
> before the line 103 where it is causing an error. I think just moving
> the line "trans_A = false" before the if statement is (one way) to
> resolve this problem. I've attached the modified code.
Quite right. Fortunately, this has already been reported and fixed,
the 4.0.1 release will include the fixed version of linsolve. It can
also be downloaded from:
http://hg.savannah.gnu.org/hgweb/octave/file/014e942ac29f/scripts/linear-algebra/linsolve.m
Cheers,
--
mike
- linsolve, Robert Setif, 2015/10/13
- Re: linsolve, James Sherman Jr., 2015/10/15
- Re: linsolve,
Mike Miller <=