MATLAB Answers


Substituting a syms with an equation

Asked by Philosophaie
on 28 Jun 2013

I have a syms Array:

syms A11 A12 A13 A21 A22 A23 A31 A32 A33 a b c x y z

A=[A11 A12 A13;A21 A22 A23;A31 A32 A33]


How do I replace a symbolic variable A11 with an equation:



1 Answer

Answer by Walter Roberson
on 29 Jun 2013

subs(A, A11, a*x+b*y+c*z)


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!