How to have an eq. with an unknown?

1 回表示 (過去 30 日間)
Will
Will 2012 年 2 月 8 日
Hi
I would like to write
x0+a*s1=x1 but keeping a as an unknown so that if I replace with values, I get:
[1; 1]+a*[1; 0]=[1+a; 1]
Is this possible?

回答 (2 件)

Sean Lawson
Sean Lawson 2012 年 2 月 8 日
As far as I know, not possible...

Walter Roberson
Walter Roberson 2012 年 2 月 8 日
Symbolic toolbox.
syms x0 x1 a s1
x1 = x0 + a * s1;
subs(x1, {x0, s1}, [1;1], [1;0])

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by