MATLAB: I am getting a straight line while running the following code. What is going wrong? functionplotting x=0.1:0.001:10;y=exp(-x.^2/2)/sqrt(x);plot(x,y) Best Answer x=0.1:0.001:10;y=exp(-x.^2/2)./sqrt(x);plot(x,y)It's ./ instead of / Related SolutionsMATLAB: Not Enough Input Arguments? What Am I doing wrong? You never define theta_max, or passed it in. What is its value? And what is that for loop for? It looks like nonsense. MATLAB: Plot straight line between points Click here for the solution to similar problemClick here Related Question
Best Answer