x= [0:1:10]
y= 68.4266*((sqrt(x/(1+x)))+((1/(1+x))*log((sqrt(x)+sqrt(x+1))))

1 Comment

José-Luis
José-Luis on 21 Dec 2016
Edited: José-Luis on 21 Dec 2016
Start by checking your parentheses. Continue by replacing * by .* which is element by element multiplication and is what you might actually want.

Sign in to comment.

 Accepted Answer

James Tursa
James Tursa on 21 Dec 2016
Edited: James Tursa on 21 Dec 2016
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) ) );

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!