Hello @Altenbach,
Thank you for all these approaches, you saved my program ! I'm just a physicist using the hadamard basis approach for my measurements, then I found that matlab algo written by someone. I made different tests and it was what I was looking for, so I decided to implement it on my labview setup. But now that we are talking I noticed that I was a bit lazy, I could try to understand how all this algorithm works and make something myself.
From your advices and your last proposition (which was exactly what I needed), I understood more the algorithm and make something more simpler.
You are my hero 🙂
Actually I use all your ideas: I8, indexing, and using the initial Hadamard matrix to get the basis.
for the algorithm, it's named the "Hadamard transform" .
https://en.wikipedia.org/wiki/Hadamard_transform.