08-27-2020 04:22 AM
Hi all
I want to median calculated with 1D array,rule as below:
array[10]-array[0]
array[11]-array[1]
array[12]-array[2]
array[13]-array[3]
snapshot has done with result,someone have other way simple to do that,thanks!!
08-27-2020 04:38 AM - edited 08-27-2020 04:39 AM
Hi Sam,
your difference calculation is quite easy:
Please don't call it "Median" as that is something completely different!
08-27-2020 05:49 PM
Hi GerdW
It seems not good,only 10 number is right,the rest is wrong,thanks!!
08-27-2020 08:41 PM
Hi,
Your VI will add 20 to the index after every 10 subtraction while GerdW's solution will not skip past any elements. If you want to implement it, take 10 element to subtract then add 20 to the index as how the original VI does it.
08-27-2020 09:45 PM
Hi,
It's work,I desired that use pointer to handle this case,but I don't do it,who can give me idea to solve this case,thanks!!