MATLAB: How we can control the length of each elemnts in a cell array cell arrayelemntlength Dea All, I'm wondering how we can control of the length(size) of each elemnt in a cell array(Since each elemnt is a matrix itself) . Thanks Best Answer C - your cell arrayout = cellfun(@size,C,'un',0) Related SolutionsMATLAB: Find largest array size in cell of many arrays C = arrayfun(@(x)rand(randi([1 20],1,2)),(1:8)','un',0);% example[s,d] = cellfun(@size,C);out = max([s,d]); MATLAB: Adding multiple arrays into one big array s1 = size(A1);s2 = size(A2);s22 = max(s1(2),s2(2));A = [A1,zeros(s1(1),s22 - s1(2));A2,zeros(s2(1),s22 - s2(2))]; Related QuestionHow to create an empty cell array of given dimensionsCall elements for a cell arrayProblem in dealing Cell and array
Best Answer