square root on an interval

1 visualizzazione (ultimi 30 giorni)
Jens Petit-jean
Jens Petit-jean il 8 Nov 2020
Commentato: Ameer Hamza il 8 Nov 2020
how to make a figure of the square root on the interval [0,2]. The figure should be smooth, not angular?

Risposte (1)

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

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by