Question: min and max points

I have 2 arrays of data that I have calculated ( X1 and Y1). I plot them and can see the min and the max points. I need these points. I use the command:

P:=ExtremePoints(X1, Y1);

And it gives me:

 

P:=ExtremePoints(X1, [4, 2,3,1,5,0.3,4]);

I expected that P will be an array and when I used the command:

N:=ArrayNumElems(P);

It will give me the total number of the min and max, but it gives me a mistake.

I will need P to be an array that I can use after that for other calculations.

Thank you!

 

 

Please Wait...