MATLAB: Cell output of function

cellMATLAB

I have a function that returns a cell, but i only need what is stored in that cell saved to D. Is there a nice way of doing this ?
An ugly solution would be:
D = fDurations(I);
D = D{1};
Could i do this in a single line ?

Best Answer

D=cell2mat(fDurations(I));