How to have an eq. with an unknown?

5 Ansichten (letzte 30 Tage)
Will
Will am 8 Feb. 2012
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?

Antworten (2)

Sean Lawson
Sean Lawson am 8 Feb. 2012
As far as I know, not possible...

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

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by