|
If you plot the Gaussion in MATLAB window, you can use the data cursor on the figure toolbar, and place it where the maximum or minimum of the plot occur, this will give you the values of x,and y.
However, if you are just interested in the maximum and minimum value of your plot based on the data you have, you do not need to obtain the min or max from the plot, the data can provide that for you.
[a b] = max(y);
x_intersect = x(b);
if your data set is a (n by 2 )array, then,
[a b] = max(data(:,1));
x_intersect = data(b,2);
"Tanusree " <tanusree_bhattacharjee85@yahoo.co.in> wrote in message <hc9q76$k1m$1@fred.mathworks.com>...
> Hi all,
>
> I have a question....that is...after drawing a Gaussian plot from a data set....we have to find the maximum and minimum values of the 'X' intersect...how to obtain the point where the curve attains the maximum value...
>
> How can I do that..
>
> thanks in advance....
>
> tanusree
|