MATLAB: Assigning multiple variables vectors from a cell array

cell arrayvariablesvectors

I'm wondering if there is any smart solution on how to access multiple same-sized vectors inside of a cell array and assign them to an independent variable.
cellArray =
1×4 cell array
{1×101 double} {1×101 double} {1×101 double} {1×101 double}
Thanks!

Best Answer

I would just do the following and then access them using 3rd indices
reshape(cell2mat(cellArray),[size(cellArray{1}) length(cellArray)])
HTH