matlab递推公式的实现T(0)=1T(1)=xT(m+1)=2xT(m)-T(m-1)在matlab中怎么求出任意T(m)的表达式?一楼的程序我也试过的,出现报错DOUBLE cannot convert the input expression into a double array.If the input expression contains a s
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/18 09:56:05
![matlab递推公式的实现T(0)=1T(1)=xT(m+1)=2xT(m)-T(m-1)在matlab中怎么求出任意T(m)的表达式?一楼的程序我也试过的,出现报错DOUBLE cannot convert the input expression into a double array.If the input expression contains a s](/uploads/image/z/6843180-12-0.jpg?t=matlab%E9%80%92%E6%8E%A8%E5%85%AC%E5%BC%8F%E7%9A%84%E5%AE%9E%E7%8E%B0T%280%29%3D1T%281%29%3DxT%28m%2B1%29%3D2xT%28m%29-T%28m-1%EF%BC%89%E5%9C%A8matlab%E4%B8%AD%E6%80%8E%E4%B9%88%E6%B1%82%E5%87%BA%E4%BB%BB%E6%84%8FT%28m%29%E7%9A%84%E8%A1%A8%E8%BE%BE%E5%BC%8F%3F%E4%B8%80%E6%A5%BC%E7%9A%84%E7%A8%8B%E5%BA%8F%E6%88%91%E4%B9%9F%E8%AF%95%E8%BF%87%E7%9A%84%2C%E5%87%BA%E7%8E%B0%E6%8A%A5%E9%94%99DOUBLE+cannot+convert+the+input+expression+into+a+double+array.If+the+input+expression+contains+a+s)
matlab递推公式的实现T(0)=1T(1)=xT(m+1)=2xT(m)-T(m-1)在matlab中怎么求出任意T(m)的表达式?一楼的程序我也试过的,出现报错DOUBLE cannot convert the input expression into a double array.If the input expression contains a s
matlab递推公式的实现
T(0)=1
T(1)=x
T(m+1)=2xT(m)-T(m-1)
在matlab中怎么求出任意T(m)的表达式?
一楼的程序我也试过的,出现报错
DOUBLE cannot convert the input expression into a double array.
If the input expression contains a symbolic variable,use the VPA function instead.
matlab递推公式的实现T(0)=1T(1)=xT(m+1)=2xT(m)-T(m-1)在matlab中怎么求出任意T(m)的表达式?一楼的程序我也试过的,出现报错DOUBLE cannot convert the input expression into a double array.If the input expression contains a s
clear;clc
m=15;syms x;
T(1,m+1)=x;
%T(1)就是T(0),T(m+1)就是T(m)
T(1)=1;
T(2)=x;
for i=2:m
T(i+1)=2*x*T(i)-T(i-1);
end
simple(T(m+1))