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!