[Top][All Lists]

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

Re: linsolve

From: James Sherman Jr.
Subject: Re: linsolve
Date: Tue, 13 Oct 2015 11:55:57 -0400

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

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.


James Sherman

Attachment: linsolve.m
Description: Binary data

reply via email to

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