How to have an eq. with an unknown?

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일

0 개 추천

As far as I know, not possible...
Walter Roberson
Walter Roberson 2012년 2월 8일

0 개 추천

Symbolic toolbox.
syms x0 x1 a s1
x1 = x0 + a * s1;
subs(x1, {x0, s1}, [1;1], [1;0])

카테고리

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

질문:

2012년 2월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by