Skip to main content
1-Visitor
October 4, 2011
Question

Maximum y value with corrosponding x value from odesolve result

  • October 4, 2011
  • 2 replies
  • 2492 views

I drew up a mathcad sheet that plots a y against x from a odesolve function. For this i have a range of x that gives a number of y(x)'s and plots a curve for me. (this is for a flow profile in a open channel, with lateral inflow)

My problem currently is that i get a list of y(x) values after i done the odesolve function, but how do i now get the maximum value of the ones that he spat out, without having to sieve through them manually? i tried the f=max(y) or max(y(x)) but to no avail...

Can someone please advise me on what to do here?

Kind Regards

Jean-Pierre

2 replies

24-Ruby IV
October 4, 2011

One variant of the ymax.pngsolution your problem:

24-Ruby III
October 6, 2011

Hello!

I have added your file with a new program code for transformation (X and Y(X)) in matrixes. Now you can normally work with them further: to calculate a maximum and a minimum etc.

ODE_1.jpg

ODE_2.jpg

P.S. Which version of Mathcad you work?