square root on an interval

4 views (last 30 days)
Jens Petit-jean
Jens Petit-jean on 8 Nov 2020
Commented: Ameer Hamza on 8 Nov 2020
how to make a figure of the square root on the interval [0,2]. The figure should be smooth, not angular?

Answers (1)

Ameer Hamza
Ameer Hamza on 8 Nov 2020
One way is to use fplot()
f = @(x) sqrt(x)
fplot(f, [0 2])
  4 Comments
Ameer Hamza
Ameer Hamza on 8 Nov 2020
I am glad to be of help!!!

Sign in to comment.

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!