Symbolic substitution for multiple variables

211 ビュー (過去 30 日間)
Deepayan Bhadra
Deepayan Bhadra 2016 年 12 月 5 日
回答済み: Star Strider 2016 年 12 月 5 日
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 日
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 件)

カテゴリ

Help Center および File ExchangeAssumptions についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by