Issues with bracket in front of matrix

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Issues with bracket in front of matrix

cristicorrea76
This post has NOT been accepted by the mailing list yet.
Greetings, I am trying to sum two vectors (one of which is from a the hatch of the breed). I am getting this result: [{{matrix: [ [ 0 ][ 0 ][ 0 ][ 0 ][ 0 ][ 0 ][ 0 ][ 0 ][ 0 ][ 0 ][ 0 ][ 0 ] ]}}] And when I try to add the matrices, I get the following: Extension exception: Inputs must be matrices or numbers but found a class org.nlogo.core.LogoList And this is the piece of code where it gets stuck: set stock-fg 0 let qto [q-order-forecast] of order-forecasts with [parentID = id and date - ticks = 2] matrix:+ standing I understand that having "[" in front of the print out of the matrix means it is not a matrix but I can't figure out how to extract the matrix from it. Help please!