While loop problem with indexes
- April 12, 2023
- 2 replies
- 2109 views
Hi!
Please, help me before I lose my mind finally. I have this simple while loop which is working just fine most of the cases but not now. I understand that the problem is with indexes but I just cannot see the solution. Please find the example file attached.
So what I'm trying to do is to compare the arrays xf and hs. Please see also the attached picture. I would want to get points compared and sorted like in the picture. From smallest to largest. English is not my native so I thought the picture would be more than thousand words.
Feel free also to suggest more simple way to do this if you like. Bear in mind that the dimensions and number of "i" usually changes with different cases I have. But one thing doesn't change and it's the number of equally divided spaces = 8.
Thanks a lot for your advice in advance!
-Harri


