![pic.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/201472/pic.png)
How can we plot a function with domain involving infinity
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
zahid
am 19 Apr. 2017
Beantwortet: Jayesh Shimpi
am 5 Okt. 2019
How can we plot a function with the domain involving infinity? Suppose I want to plot the following function:
f(y)=(2*pi*y)^(-1/2)*exp(-y/2); y>0
How can I do this in MATLAB?
Thanks
1 Kommentar
Akzeptierte Antwort
Andrew Newell
am 19 Apr. 2017
Of course, you can't plot the whole thing, but you can plot enough so that it's obvious where the curve is going. One approach is to let MATLAB choose the domain for you:
f = @(y) (2*pi*y).^(-1/2).*exp(-y/2);
ezplot(f)
0 Kommentare
Weitere Antworten (1)
Jayesh Shimpi
am 5 Okt. 2019
Infinity symbol used in Matlab for limit to plot the graph
0 Kommentare
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!