help-octave
[Top][All Lists]
Advanced

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

Re: Indexing array elements inside a cell in C++ API


From: Mariano
Subject: Re: Indexing array elements inside a cell in C++ API
Date: Mon, 27 Jan 2020 04:34:02 -0600 (CST)

You can try with cell2mat or {}()
>> c={[1;2]}
c =
{
  [1,1] =

     1
     2

}

>> cell2mat(c)(2,1) % Using cell2mat
ans =  2
>> c{1}(2,1) % Using {}()
ans =  2



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

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