MATLAB Answers

Trying to plot this curve what have I done wrong?

1 view (last 30 days)
Anu Kunnath
Anu Kunnath on 24 Nov 2020
Edited: VBBV on 24 Nov 2020
plot(18*sqrt(2)*(sqrt(1+1/(1+x^2)) + asin(1/(1+x^2)-pi/2)))

  0 Comments

Sign in to comment.

Answers (2)

Stephan
Stephan on 24 Nov 2020
fun = @(x)(18*sqrt(2)*(sqrt(1+1./(1+x.^2)) + asin(1./(1+x.^2)-pi/2)))
fplot(fun)

  0 Comments

Sign in to comment.


VBBV
VBBV on 24 Nov 2020
Edited: VBBV on 24 Nov 2020
%if true
x = 1:10;% define values for x vector
plot(18*sqrt(2)*(sqrt(1+1./(1+x.^2))+...
asin(1./(1+x.^2)-pi/2)))

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!