This error appear to me when I run the script and I canĀ“t find the mistake. The right and left members from the following equation are supossed to be scalars:
Assignment has more non-singleton rhs dimensions than non-singleton subscripts
Error in evol_NL (line 15) B(j,k,l) = exp(-1i*dt*(Vpot(x(j),y(k),z(l))+(bet-lam)*((A(j,k,l))^2)-3*lam*(Lapla_nn_s(j,k,l))))*A(j,k,l);
'dt', 'bet' and 'lam' are scalars, 'A' and 'Lapla_nn_s' are 5x5x5 matrix, and 'x', 'y' and 'z' are vectors.
Thanks for your help!
Best Answer