MATLAB: How to plot lnx lnxlogarithmploturgent let us say x= [0 1 2 3 4 5 6 7 8 9]and y = ln(x) plot (x,y ) does not work. Is y=ln(x) a wrong statement ? Best Answer x= [0 1 2 3 4 5 6 7 8 9]y=log(x)plot(x,y)You should know that log is not defined for x=0 Related SolutionsMATLAB: How to calculate ln(x) in matlab code log(x) MATLAB: Maclaurin series for ln(x) and ln(x+1) Maclaurin series is just a Taylor series expanded at x = 0. For ln(x) the series does not exist. For ln(1+x), try the followingsyms xy = log(x + 1);y_series = taylor(y, x, 0, 'Order', 10) Related QuestionTaylor series for ln(x)LOG vs LOG10 plotHaving issues with Simpson’s Rule ln(x)How to perform a polyfit on semilog plot
Best Answer