- #1
shafieza_garl
- 20
- 0
anyone can help me to plot a point.
what i am doing is i use FindMaximum first to know the point of maximum.
then i manually key in the x,y coordinate from the search.
is there any way i can plot the maximum point without key-in manually using the findmaximum point.
thanks
Code:
r = Plot[Sin[j], {j, 0, Pi}];
Code:
FindMaximum[Sin[j], {j, Pi}]
then i manually key in the x,y coordinate from the search.
Code:
onedot = ListPlot[{{1.5707963267948966, 1}},
PlotStyle -> {Hue[0.67], AbsolutePointSize[7]}];
Show[r, onedot]
is there any way i can plot the maximum point without key-in manually using the findmaximum point.
thanks