필터 지우기
필터 지우기

I'm trying to use LDA for fault diagnosis but I'm get problems to runs it

조회 수: 1 (최근 30일)
Rui Mauaie
Rui Mauaie 2018년 11월 22일
code
load d11_te.dat
d11 = zscore(d11); size 480*50
d11_te = zscore(d11_te) size 960*50
num1=size(d11,1);
num2=size(d11_te,1);
l=num1+num2;
X=[d11; d11_te];
Y=[ones(n1,1);2*ones(n2,1)];
% Y=Y';
%%%%%%%%%%%%%%%%%%%%%% Computing LFDA solution
[T,Z]=LFDA(X,Y,1);
function
for c=unique(Y')
Xc=X(:,Y==c);
nc=size(Xc,2);
error
Index exceeds matrix dimensions.
Error in LFDA (line 48)
Xc=X(:,Y==c);
Error in demo_LFDA (line 20)
[T,Z]=LFDA(X,Y,1);

답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by