Hello,
I am using intersect function with this following command :
[c, ia ib] = intersect(Signal,VIndex)VIndex = [VIndex(ib,1),VIndex(ib,2)]>> size(Signal)ans = 2514 2>> size(VIndex)ans = 2517 2
The problem with this, is that i am getting this following error :
Index exceeds matrix dimensions.
the issue is that the command that my ib is giving me something like this in the first columns :
2572 4004 4 5 6 7 8 9 10
I would expect it to start with 4 and not the first 2 rows, thats why i am getting this error.
I removed the first 2 columsn manually, and it works well. But when executed, it keeps putting these 2 numbers in the first 2 rows…
Anyone encountered this?
Thank you
D
Best Answer