Borrar filtros
Borrar filtros

Symbolic substitution for multiple variables

104 visualizaciones (últimos 30 días)
Deepayan Bhadra
Deepayan Bhadra el 5 de Dic. de 2016
Respondida: Star Strider el 5 de Dic. de 2016
Hi,
I wanted some explanation on the captioned. Say my N is a 6x6 matrix with 5 symbolic variables and I want to evaluate N at one go, for 5 different values of the variables. How do I do that using subs? Thank you.

Respuesta aceptada

Star Strider
Star Strider el 5 de Dic. de 2016
A simplified example:
syms a b c d e
M = [a b c; d e b; e c a];
Ms = subs(M, {a b c d e}, {1 3 5 7 9});
Ms =
[ 1, 3, 5]
[ 7, 9, 3]
[ 9, 5, 1]

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by