I have a cell array thiscells
:
thiscells <1*40 cell>
eacharray of thiscells is 280*3
I have a function (TheFunction
) that gets input of cell array that each array is X*2
How can I send a cell array to TheFunction
that contain only columns1,3 from each array?
I tried
TheFunction(thiscells{:}(:,1:2)) % tring to send only columns 1,2
But it didn't work
Edit:
working with (but still looking for faster way to do so):
What is did so far
TheFunction(makingNewCells(thiscells,2));
when
makingNewCells:
[newCells]=makingNewCells(oldCells)
for ii=1:max(size(oldcells))
newCells=oldCells(:,[1 column]);
end