I'm using Matlab for a iterative solution of the matrix of nonlinear equations. But I didn't find the command to do it properly and the usual MATLAB codes do not converge and I don't know where the problem is so I have to make codes myself.
Due to the Newton Raphson iterative solver I have obtained the inverse of the Jacobian matrix and the function both with sym variables.
but when I want to replace the sym variables with the previous iteration values this does not happen.
for example consider
syms A B C DM=[A B;C D];A=1;B=2;C=3;D=4;
if I run this I expect to have below in the commad
MM=[1 23 4]
but this doesn't happen why?
Best Answer