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.

 채택된 답변

Star Strider
Star Strider 2016년 12월 5일

7 개 추천

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]

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

태그

질문:

2016년 12월 5일

답변:

2016년 12월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by