I have the following code in Matlab
a= a + b(c,:);
where 'a' is a 4524x3 matrix, 'b' is 1131x3 and 'c' 4524x1.
In Python I have
a[:]+= b[c, :]
Where I'm getting 'a' as a 4524x4524x3 matrix. Why does Python create this extra dimension instead of sum the values?
c? What happens when you doc.shapein the command prompt? Do you get(4524,)or(4524,1)?