MATLAB: Convert the Mathematica expression to matlab

convert code to matlabconvert mathematica to matlab code

Hello I want to convert the following lines to matlab.But I am unable to do it with matlab to function.Please help..
x[i_]:=x[i]=x[i-1]+h f1[t[i-1],x[i-1],y[i-1],z[i-1]]+1/2 h2 (f1(1,0,0,0)[t[i-1],x[i-1],y[i-1],z[i-1]]+f1(0,1,0,0)[t[i-1],x[i-1],y[i-1],z[i-1]] f1[t[i-1],x[i-1],y[i-1],z[i-1]]+f1(0,0,1,0)[t[i-1],x[i-1],y[i-1],z[i-1]] f2[t[i-1],x[i-1],y[i-1],z[i-1]]+f1(0,0,0,1)[t[i-1],x[i-1],y[i-1],z[i-1]] f3[t[i-1],x[i-1],y[i-1],z[i-1]])
This is implementation of Taylor series.

Best Answer

MAtlab has inbuilt function for Taylor series
doc taylor