How to paste new values into variables in a matrix
Show older comments
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 D
M=[A B;C D];
A=1;
B=2;
C=3;
D=4;
if I run this I expect to have below in the commad
M
M=
[1 2
3 4]
but this doesn't happen why?
1 Comment
David Hill
on 3 Dec 2019
Why do you need to use symbolics?
Accepted Answer
More Answers (0)
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!