In an assignment A(:) = B, the number of elements in A and B must be the same.
Error in msspoly/subsasgn (line 89)
p1.dim(2) = max(max(js),p1.dim(2));
Error in TrigPoly/subsasgn (line 365)
a.p=subsasgn(a.p,s,b);
Error in msspoly_subsasgn_test (line 15)
J(pos_row_indices, v_or_qdot_indices) = Jpos;
Affects @msspoly/subsasgn.m
Can not handle a index assignment using zeros(0,n) or zeros(n,0) see this test script:
It fails with this error: