square root on an interval

1 次查看(过去 30 天)
Jens Petit-jean
Jens Petit-jean 2020-11-8
how to make a figure of the square root on the interval [0,2]. The figure should be smooth, not angular?

回答(1 个)

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

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by