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!