05-03-2010 03:21 AM
Hey everyone,
I have one small issue (form me apparently is huge).
So, how can i get a value x of max y value from graph? I've attached two views. I knew how to take max from array but in my block digram for marque a graph i've used 'df' and 'f0' - how can i turne these on good value whith one will be good present as in the graph. Whot i am going to do is just take a x=f(ymax).
If you can help me, please?
Marek
Solved! Go to Solution.
05-03-2010 03:25 AM - edited 05-03-2010 03:29 AM
Marek,
the function you are looking for is called Max&Min and can be found in the array palette.
hope this helps,
Norbert
Edit: You simply have to calculate the actual x-value regarding your scaling info: x-index * df + f0.
05-03-2010 03:25 AM - edited 05-03-2010 03:27 AM
Post some code for us to look at.
You can use the array max/min to find the max value of y. This will then also give you the index. You can use the index to then find the corrosponding value of x.
05-03-2010 03:38 AM
Thank for Your reply,
My issue is that, I don't knew how to take index value from two parameters df and f0?
05-03-2010 03:41 AM
05-03-2010 03:57 AM
Hi Gfds,
Your 2 paremeters df and f0 are not arrays, they are single double values?? You have made a cluster out of 2 double values, initialised an array with them but not set an array size, giving you an uninitialized array and then tried to index it?
If you can post some actual code rather then just a glimpse we may be able to see what you are trying to do and help. Is not all that clear at the moment.
Rgs,
Lucither
05-03-2010 04:10 AM - edited 05-03-2010 04:12 AM
Hi Gfds,
Just realised what you are after:
I beleive this is what you are after.
Rgs,
Lucither
05-03-2010 04:11 AM - edited 05-03-2010 04:12 AM
Here without Goldberg:
Norbert
Edit: Lucither bet me 😞
05-03-2010 04:14 AM
Norbert,
If it makes you feel better i think i had a head start 🙂
Rgs,
Lucither
05-03-2010 04:39 AM