MATLAB: Can someone help me with this question? I keep getting the error “Not enough input arguments. Error in assesment2question1 (line 5) for m = 1:N”

errorfunctionMATLABplot

The question I have is:
Consider the Maclaurin expansion: x/(1-x) = x + x^2 + x^3 + …
Write a MATLAB function func(x,N) that returns the Maclaurin expansion using the first N terms. Use the function to plot, func(x,2), func(x,4) and func(x,8) on the same axes, for -0.5<x<0.5.

Best Answer

you‘re running a function file without an input which causes error