square root on an interval

1 Ansicht (letzte 30 Tage)
Jens Petit-jean
Jens Petit-jean am 8 Nov. 2020
Kommentiert: Ameer Hamza am 8 Nov. 2020
how to make a figure of the square root on the interval [0,2]. The figure should be smooth, not angular?

Antworten (1)

Ameer Hamza
Ameer Hamza am 8 Nov. 2020
One way is to use fplot()
f = @(x) sqrt(x)
fplot(f, [0 2])
  4 Kommentare
Jens Petit-jean
Jens Petit-jean am 8 Nov. 2020
okay thank you very much!
Ameer Hamza
Ameer Hamza am 8 Nov. 2020
I am glad to be of help!!!

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by