Code covered by the BSD License  

Highlights from
Logiciels temps réel

Logiciels temps réel

by

 

Real-time software concerning the domains of the signal processing, feedback and regulation

P=meme_longueur(A,B,C,D,AP,BP,CP,DP)
function P=meme_longueur(A,B,C,D,AP,BP,CP,DP)

if nargin==4
la=length(A);
lb=length(B);
lc=length(C);
ld=length(D);
L=max([la,lb,lc,ld]);
A1=[zeros(1,L-la),A];
B1=[zeros(1,L-lb),B];
C1=[zeros(1,L-lc),C];
D1=[zeros(1,L-ld),D];
P=[A1;B1;C1;D1];
else
    la=length(A);
lb=length(B);
lc=length(C);
ld=length(D);
    lap=length(AP);
lbp=length(BP);
lcp=length(CP);
ldp=length(DP);
L=max([la,lb,lc,ld,lap,lbp,lcp,ldp]);
A1=[zeros(1,L-la),A];
B1=[zeros(1,L-lb),B];
C1=[zeros(1,L-lc),C];
D1=[zeros(1,L-ld),D];
AP1=[zeros(1,L-lap),AP];
BP1=[zeros(1,L-lbp),BP];
CP1=[zeros(1,L-lcp),CP];
DP1=[zeros(1,L-ldp),DP];
P=[A1;B1;C1;D1;AP1;BP1;CP1;DP1];
end;

Contact us