Subscripted assignment dimension mismatch.
古いコメントを表示
So I am working on a fingerprint thingy, not important. The thing is I am storing the position of the minutiae (ridges and valleys) in arrays.
I want to compare two fingerprint images.
totsfcvr1 is the matrix that stores the ridge position information for the first fingerprint.
totsfcvr2 is the matrix that stores the ridge position information for the second fingerprint.
I am converting those matrices to vectors and I am trying to add zeros so the dimension is the same for the both vectors for an easier comparison.
C = totsfcvr1';
C = C(:)';
D = totsfcvr2';
D = D(:)';
if size(D) >= size(C)
F = size(D)-size(C);
F(F==0) = [];
if size(D) == 1
G = [1];
else
G = size(D);
G(G==1) = [];
end
H = zeros(1,G);
H(1,1:G-F) = C;
C = H;
else
F = size(C)-size(D);
F(F==0) = [];
if size(C) == 1
G = [1];
else
G = size(C);
G(G==1) = [];
end
H = zeros(1,G);
H(1,1:G-F) = D;
D = H;
end
I get this error:
Subscripted assignment dimension mismatch.
at this line:
Error in main_GUI>verificare_Callback (line 151)
H(1,1:G-F) = C;
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Call C++ from MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!