how to create target matrix
조회 수: 6 (최근 30일)
이전 댓글 표시
hi I am having a signature database of 50 signatures. (i.e 5 samples of each of the 10 signers and extracted 14 features of every signature).that is i have an i/p matrix of size(14 x 50). Now i have to create a target matrix of 10 x 50 (because of 10 classes).Targets will be a 10x50 matrix, where each column indicates the correct signature with a 1 in one element (and zeros in the other 9 elements).But i don't know how to create this. please help.
댓글 수: 0
답변 (1개)
Greg Heath
2012년 8월 14일
%Example
classindex = [ 1:2:9 10:-2:2 ]
target = ind2vec(classindex)
% Hope this helps.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!