MATLAB: Extraction of individual matrix from cell array

anti-patterncell2mat cellarray matrix extractioncomplexdynamic variable namesevalinefficientslow

I want to extract all the matrix in cell array as individual matrix in my workspace
MT1=Microtrips{1,1}
MT2=Microtrips{1,2}……
MTn=Microtrips{1,n}
Plz find attached mat file
help me out with the code

Best Answer

After loading the mat file,I guess you would probably wanna do this.
for i=1:numel(Microtrips),eval(['MT' num2str(x) ' = Microtrips{' num2str(x) '};']);end
However, Many common uses of the eval function are less efficient and are more difficult to read and debug than other MATLAB functions and language constructs.