MATLAB: Not enough input arguments error when using exp argumentsenoughexpfunctioninputnot Hi, I am very new to matlab and I and getting the 'not enough input arguments when typing this. EDU>> syms x EDU>> f = 5*exp^(2*x – sin(x^2)) Any help is appreciated. Thanks Best Answer That's because you are not passing any arguments to the exp() function. You probably meant: f = 5*exp(2*x - sin(x^2));Or if you meant the number e:f = 5*exp(1)^(2*x - sin(x^2)); Related SolutionsMATLAB: Not enough input arguments graphing exp Typo!y2 = (2*exp(-2*t) - exp*(-1*t)); ^Remove the extra ‘*’ and you’re good to go.And definitely go with linspace. You’ll get a much better looking plot.Changing the ‘t’ assignment to:t = linspace(0,7);will work fine. MATLAB: Integration exp(x) Not all expressions have analytic integrals. That seems to be one of them. The best you can hope for is to expand it to a series and integrate that:syms x realEqn = exp(x)/(1-tan(x));EqnTylr = taylor(Eqn, 'Order', 10);Result = vpa(int(EqnTylr, x), 7)Result =1.227911*x^10 + 1.071564*x^9 + 0.946875*x^8 + 0.8501984*x^7 + 0.7805556*x^6 + 0.7416667*x^5 + 0.75*x^4 + 0.8333333*x^3 + x^2 + x Related QuestionEvaluate a Hankel integralFsolve not enough input arguments
Best Answer