匿名用户
1级
2015-02-13 回答
问题简化后如下:y = t^3 ,x=t^2 ;如何得到x y 的关系 :
代码如下 :
clc,syms t
y = t^3 ;x=t^2 ;
y=subs(compose(y,finverse(x)),'t','x')
y =
x^(3/2)
subs :替换变量
例如
subs('x^2+1','x','y')
ans =
y^2 + 1
compose :实现函数的复合
>> y=x^2
x=t
>> compose(y,x)
ans =
t^2
>>
compose 函数
compose Functional composition.
compose(f,g) returns f(g(y)) where f = f(x) and g = g(y).
Here x is the symbolic variable of f as defined by SYMVAR and
y is the symbolic variable of g as defined by SYMVAR.
If f and g are symbolic functions the x and y are the respective
inputs.
Examples:
syms