Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /comp/comp_cellcoef2tf.m [dbf0ef] .. [6db11f] Maximize Restore

  Switch to unified view

a/comp/comp_cellcoef2tf.m b/comp/comp_cellcoef2tf.m
1
function coef = comp_cellcoef2tf(coef,dim)
1
function coef = comp_cellcoef2tf(coef,maxLen)
2
%COMP_CELLCOEF2TF Cell to a tf-layout
2
%COMP_CELLCOEF2TF Cell to a tf-layout
3
%   Usage: coef = comp_cellcoef2tf(coef,dim)
3
%   Usage: coef = comp_cellcoef2tf(coef,dim)
4
%
4
%
5
5
6
6
7
coefLenMax = max(cellfun(@(cEl)size(cEl,1),coef));
7
coefLenMax = max(cellfun(@(cEl)size(cEl,1),coef));
8
coefTmp = zeros(coefLenMax,numel(coef),size(coef{1},2),class(coef{1}));
8
coefTmp = zeros(coefLenMax,numel(coef),size(coef{1},2),class(coef{1}));
9
10
if nargin>1
11
   coefLenMax = min([coefLenMax,maxLen]);
12
end
13
9
for ii=1:numel(coef)
14
for ii=1:numel(coef)
10
   if size(coef{ii},1) == 1
15
   if size(coef{ii},1) == 1
11
      coefTmp(:,ii) = coef{ii};
16
      coefTmp(:,ii) = coef{ii};
12
      continue;
17
      continue;
13
   end
18
   end