I am trying to store as a variable in a python script, mxn arrays using nested loops as follows:
A=[ ]
for j in ListA:
for x in ListB:
values = some.function(label_fname, stc_fname)
A(j)=values(x)
for each x, values is an mxn matrix with m~=n.
When I index values here by values[x] or values(x) I get:
output operand requires a reduction, but reduction is not enabled OR can't assign to function call.
What I would like to due is append values(x) matrices and store in A(j). Honestly, I can't say this in English, but in matlab lingo I am trying to create a cell array, where A{j} is an mxn array.
Thanks in advance.
numpy. "output operand requires a reduction [etc.]" is anumpyerror message.