So I need to find the min and max values of consecutive values stored in a vector like the following:
v = [670; 671; 672; 680; 681; 682; 700; 701; 702; 703;…]
My end goal is to have the min and max values displayed like so:
'The problem occurs in segments: 670 – 672, 680 – 682, 700 – 703, …'
I hope I am specific.
Any Ideas?
Thanks
Best Answer