Skip to content

Instantly share code, notes, and snippets.

@eric-tramel
Created February 9, 2016 14:48
Show Gist options
  • Save eric-tramel/293bcae5c1a6ae47ba1a to your computer and use it in GitHub Desktop.
Save eric-tramel/293bcae5c1a6ae47ba1a to your computer and use it in GitHub Desktop.
wcell2mat.m
function wmat = wcell2mat(wcell)
L = length(wcell);
bb = wcell{end};
[rlo,clo] = size(bb);
wmat = bb;
for i=(L-1):-1:1
wmat = [wmat, wcell{i}{1};
wcell{i}{2}, wcell{i}{3}];
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment