06-03-2014 04:25 AM
hi
i want to get in the column averages just the average of the values of some columns not all the columns of the table.what i have to change exactly in this block diagram.even if the size of the table is 25,i want the division to be the number of values in each column(= number of rows)
just like that:
Solved! Go to Solution.
06-03-2014 04:41 AM - edited 06-03-2014 04:45 AM
Check for "Mean.vi" in Mathematics palette. Replace your code inside the for loop with that vi.
Something like this you should have.
06-03-2014 04:58 AM
but it doesn't change anything,how could i get the values of just some columns, number 2 and 5 for example
06-03-2014 05:24 AM
For that you have to index the array like this.
I would recommend you to go through some basic training materials in LabVIEW which you may find here.
Good luck!
06-03-2014 05:46 AM - edited 06-03-2014 05:47 AM
i did exactely what u told me, i think i missed something because i don't get the average value of the rows i want
06-03-2014 06:05 AM
I didn't use a Transpose array
06-03-2014 06:25 AM
if i don't use transpose array i will get the average value of each row, i want the average of columns
06-03-2014 06:40 AM
even if i used the 3rd and 5th columns,i get 4 values in the column averages which is wrong.i want the average values of the column 3 and 5.so just 2 values
06-03-2014 06:52 AM
You cannot get 4 elements unless you have 4 values in the array from which you are feeding the index.
06-03-2014 07:00 AM - edited 06-03-2014 07:00 AM
here is exactly what i get with the previous blockdiagram