square root on an interval
Mostra commenti meno recenti
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
il 8 Nov 2020
One way is to use fplot()
f = @(x) sqrt(x)
fplot(f, [0 2])

4 Commenti
Jens Petit-jean
il 8 Nov 2020
Ameer Hamza
il 8 Nov 2020
This creates a function handle. Read about function handle here: https://www.mathworks.com/help/matlab/function-handles.html
Jens Petit-jean
il 8 Nov 2020
Ameer Hamza
il 8 Nov 2020
I am glad to be of help!!!
Categorie
Scopri di più su Creating, Deleting, and Querying Graphics Objects in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!