rdivide error?
조회 수: 8 (최근 30일)
이전 댓글 표시
[EDIT: Tue Jun 7 04:51:14 UTC 2011 - Reformat - MKF]
I'm working with a Lvq network, I want to have the error in the classification, but the code send me this error
??? Undefined function or method 'rdivide' for input arguments of
type 'cell'.
Error in ==> RedesLVQ at 54
PercentS = (Err./n)*100;
*This is the part of the code: *
y = net(P);
%Y = sim(net,P);
perf = perform(net,y,t)
classes = vec2ind(Y)
[a b c Err, perf]= sim(net,P);
[m,n] = size(P);
PercentS = (Err./n)*100;
댓글 수: 0
답변 (1개)
Walter Roberson
2011년 6월 7일
It is not clear to me that dividing by the number of time steps and multiplying by 100 is going to get you any kind of meaningful percentage, but...
PercentS = cellfun(@(C) C .* (100 / n), Err);
This will return a cell array of arrays of values. I will leave it to you to assign meaning to those values.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Function Approximation, Clustering, and Control에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!