Hi All,
In the example below, I am looking to find the value in "dat" that corresponds to the case of when z1 == max1. In this case, the value 10.759366 is the value I am looking for when z1 == max1 (2.848514).
The easiest way is simply "list dat if z1==max1", however, I need create a scalar from that value, so "list" is not an option...
Thanks in advance!
Ariel
In the example below, I am looking to find the value in "dat" that corresponds to the case of when z1 == max1. In this case, the value 10.759366 is the value I am looking for when z1 == max1 (2.848514).
The easiest way is simply "list dat if z1==max1", however, I need create a scalar from that value, so "list" is not an option...
Thanks in advance!
Ariel
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float(dat z1 max1) 6.001519 .9686938 2.848514 8.734053 2.048315 2.848514 10.146043 2.606191 2.848514 10.759366 2.848514 2.848514 end
Comment