MATLAB: How can I do this in matlab thanks in advance. x= [0:1:10] y= 68.4266*((sqrt(x/(1+x)))+((1/(1+x))*log((sqrt(x)+sqrt(x+1)))) Best Answer E.g., replacing * with element-wise multiply .* and / with element-wise divide ./ you get (assuming I got your parentheses corrected in the way that you need):x = [0:1:10];y = 68.4266*( sqrt(x./(1+x)) + (1./(1+x)) .* log( sqrt(x) + sqrt(x+1) ) ); Related SolutionsMATLAB: How to solve system of 2nd order differential equations using ode45 plot3(t,x(:,1),x(:,3)) MATLAB: Matrix dimensions must agree You need to use element-wise operatory=(1./x) %^ put a dot hereRead about element-wise operators here: https://www.mathworks.com/help/matlab/matlab_prog/array-vs-matrix-operations.html Related QuestionHow to square a column in a matrixIsn’t the plot showing upHow do you write the equation f=exp(x)*cos(x)
Best Answer