code:X=[3];for t=1:length(X)A = partitions([X(t)]);for d=1:length(A) for e=1:length(A{d}) if (size(A{d}{e})<= 2)C=A{d}{e}elseC=A[]endendendend
If i run the above code its showing error stating Unbalanced or unexpected parenthesis or bracket in line C=A[].Could anyone help me how to overcome the error.
Best Answer