Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Hi , how can explain this code?

1 visualización (últimos 30 días)
fehmi zarzoum
fehmi zarzoum el 19 de Sept. de 2017
Cerrada: John D'Errico el 19 de Sept. de 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 .

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by