フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Hi , how can explain this code?

1 回表示 (過去 30 日間)
fehmi zarzoum
fehmi zarzoum 2017 年 9 月 19 日
閉鎖済み: John D'Errico 2017 年 9 月 19 日
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 .

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by