square root on an interval
显示 更早的评论
how to make a figure of the square root on the interval [0,2]. The figure should be smooth, not angular?
回答(1 个)
Ameer Hamza
2020-11-8
One way is to use fplot()
f = @(x) sqrt(x)
fplot(f, [0 2])

4 个评论
Jens Petit-jean
2020-11-8
Ameer Hamza
2020-11-8
This creates a function handle. Read about function handle here: https://www.mathworks.com/help/matlab/function-handles.html
Jens Petit-jean
2020-11-8
Ameer Hamza
2020-11-8
I am glad to be of help!!!
类别
在 帮助中心 和 File Exchange 中查找有关 2-D and 3-D Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!