If I have Matrix
delta = sym('R%d%d',[3,3])[ R11, R12, R13][ R21, R22, R23][ R31, R32, R33]
If i want to replace R11 R22 and R33 with [1 2 3] i tried
subs(delta,[R11 R22 R33],[1 2 3])
This doesnt replace anything althought for 1d array it works
delta = sym('R%d',[1,3]) subs(delta,[R1 R2 R3],[1 2 3])ans =[ 1, 2, 3]
Best Answer