D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Octave/Matlab difference

 

> On 26 Jul 2017, at 12:06, M. J. Everitt <m.j.everitt@xxxxxxx> wrote:
> 
> On 26/07/17 12:03, Tom via list wrote:
>> On 26/07/17 09:34, jah wrote:
>>> On 25/07/17 20:55, Tom via list wrote:
>>>> [vec, val] = eig(L, 'vector'); error: eig: wrong type argument
>>>> 'sq_string'
>>> "One additional complication of strings in Octave is the difference
>>> between single quoted and double quoted strings." [1]
>>> 
>>> It looks like 'vector' should be "vector" [2].
>>> 
>>> [1]:
>>> https://www.gnu.org/software/octave/doc/interpreter/Character-Strings-in-Oct_002dFiles.html
>>> 
>>> [2]: https://octave.sourceforge.io/octave/function/eig.html
>>> 
>>> 
>>> 
>>> 
>> Tried that and IIRC got
>> 
>> [vec, val] = eig(L, "vector"); error: eig: wrong type argument 'string'
>> Tom te tom te tom
>> 
>> 
> "Check your Vector, Victorâ"



Noticed the order of the array args might be confusing, have youâve got them the 
wrong way around, thus accessing the wrong cell ...thus type, in the array?    â 
total guess. 

Jay 

> 
> -- 
> The Mailing List for the Devon & Cornwall LUG
> https://mailman.dclug.org.uk/listinfo/list
> FAQ: http://www.dcglug.org.uk/listfaq

-- 
The Mailing List for the Devon & Cornwall LUG
https://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq