How to have an eq. with an unknown?
1 view (last 30 days)
Show older comments
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?
0 Comments
Answers (2)
Walter Roberson
on 8 Feb 2012
Symbolic toolbox.
syms x0 x1 a s1
x1 = x0 + a * s1;
subs(x1, {x0, s1}, [1;1], [1;0])
0 Comments
See Also
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!