01-02-2012 07:20 AM
Find a solution, but it only works for the first column of the array, I need that works for all columns of the array. Annex I solution
01-02-2012 07:26 AM
The arrangement with which I am working on is 2D arrays, WaveformData. In this arrangement need to extract the maximum and minimum of each element and form two arrays, one for maximum and another for minimum.
01-02-2012 07:40 AM
Hi Redney,
a simple way to get the maxima and minima of each row in a 2d array would be:
Use a TransposeArray to get min/max of columns...
"need to extract the maximum and minimum of each element"
You should define what an element is to you. Usually an element of an array is a scalar value - thus the maximum nd minimum of an element is the same as the element...
01-02-2012 07:45 AM
The maximum and minimum arrangement is shown as a partial solution that implements only works for the first column and not the rest.
01-02-2012 07:52 AM
01-02-2012 07:59 AM
Redney, please give a example of the input and the expected output...
For example if the input is
[[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
What is the output?
01-02-2012 08:11 AM
What I need to get is the maximum and minimum of each array element. Each array element is a value in a waveform, at time t. I need to get the minimum and maximum value of each element after a time interval. Each of the maximum and minimum would be part of an array of other maximum and minimum.
01-02-2012 08:17 AM
Hi Redney,
as said before:
- You should define what an element is to you. Usually an element of an array is a scalar value - thus the maximum and minimum of an element is the same as the element...
- Wouter asked "What is the output?"
01-02-2012 10:52 AM
I know what is an element of an array. I need to get the maximum and minimum value of the variation of this element in time, you know.
01-02-2012 10:56 AM
The input is an array of 4 rows by 25 columns. Each element of this arrangement describes a waveform, what I need is to get the maximum and minimum values of that waveform.