I am trying to delete cells in a cell array, such that is has the same length as one of my other arrys
I have a cell array of 23x1 cell which cotains numbers (all different ones) --> call it X
3599 and so on
I have another cell aray of 24x 1 cell which contains numbers as well (the same number in every cell) --> call it Y
2222 and so on
I want that my Y variable gets the same length as my X variable, by removing one of the cells in this cell array.
How can I program this? As they will differ in length and I need to do this multiple times, I probably need something with length or numel.
I tried several things, but none is working yet.
Hope you can help me out.