如何用Matlab求反函数值a=[-3,-2,-1,0,1,2,3];a=((3-(-3))/(2-(-1)))*(b-((2-1)/2));求b.

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/08 09:56:32

如何用Matlab求反函数值a=[-3,-2,-1,0,1,2,3];a=((3-(-3))/(2-(-1)))*(b-((2-1)/2));求b.
如何用Matlab求反函数值
a=[-3,-2,-1,0,1,2,3];
a=((3-(-3))/(2-(-1)))*(b-((2-1)/2));
求b.

如何用Matlab求反函数值a=[-3,-2,-1,0,1,2,3];a=((3-(-3))/(2-(-1)))*(b-((2-1)/2));求b.
clc;clear
b=solve('a=((3-(-3))/(2-(-1)))*(b-((2-1)/2))')
a=[-3,-2,-1,0,1,2,3];
b=subs(b)
结果:
b =
1/2*a+1/2
b =
-1 -0.5 0 0.5 1 1.5 2