MATLAB: How to plot this on a graph factorialplotrange how do u plot this between 0 and 2 syms n x F = symsum(1/factorial(n),n,1,5) Best Answer There is no 'x' in your expression inside symsum(). I guess you are tyring to plot taylor series of exp(x). Try thissyms n xF = symsum(x^n/factorial(n),n,0,5);fplot(F, [0 2]) Related SolutionsMATLAB: Character vectors and strings in the first argument can only specify a variable or number. To evaluate character vectors and strings representing symbolic expressions, use ‘str2sym’. syms x nf2 = x^n ; symsum(f2/factorial(n),n,0,inf) MATLAB: How to perform symbolic factorial The MuPad factorial function name is fact() . This does not, however, appear to be exposed at the Matlab level, so you might need to use, (e.g.,)f2=symsum((1/sym('factorial(n)'))*f^(n),n,0,10) Related QuestionHow could I make a periodic function in MatLabHow to find zero on plot
Best Answer