Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Hi , how can explain this code?

1 Ansicht (letzte 30 Tage)
fehmi zarzoum
fehmi zarzoum am 19 Sep. 2017
Geschlossen: John D'Errico am 19 Sep. 2017
Hi ,
how can explain this code?
function [wreduit]=acp1(W)
W1=W'; mx=mean(W1);
stdx=std(W1);ax=zeros(size(W1));
[r1,c1]=size(W1);
for i=1:r1
ax(i,:)=(W1(i,:)-mx)./stdx;
end
cov=ax'*ax/(r1-1);
[v,d]=eig(cov); d=diag(d);
[a,t1]=sort(d);
t1=t1(c1:-1:1);
d=d(t1); v=v(:,t1); t2=ax*v;
xe=ax*v(:,1:4)*v(:,1:4)';
s=t1(1:4,:);
wreduit=W1(:,t1(1:4,:))
end
[S] = acp1(Ws); { for healthy motor}
[BX] = acp1(Wbx); { fault in outer race bearing}
[BI] = acp1(Wbi); { fault in inner race bearing}
[B] = acp1(Wb); { fault in baal bearing}
thanks a lot .

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by