in your case, Matlab complaints about the following line (226 in icp.m):
[~, idx] = sort(mindist);
This is probably due to the fact that older versions of Matlab don't understand the tilde (~) as a way of discarding a certain output variable. You can either update to a newer version of Matlab or use a dummy output (you will have to do this at several places inside the code), e.g.:
[dummy, idx] = sort(mindist);
This implementation of brute force nearest neighbor search is quite fast for small data sets of high dimensionality. In many other cases however, KDTreeSearcher and ExhaustiveSearcher in Matlabs Statistics Toolbox is faster.
in your case, Matlab complaints about the following line (226 in icp.m):
[~, idx] = sort(mindist);
This is probably due to the fact that older versions of Matlab don't understand the tilde (~) as a way of discarding a certain output variable. You can either update to a newer version of Matlab or use a dummy output (you will have to do this at several places inside the code), e.g.:
[dummy, idx] = sort(mindist);
Hi Jakob
I am getting the following error when I run demo file. Any suggestions. many thanks.
------------------------------
??? Error: File: icp.m Line: 226 Column: 11
Expression or statement is incorrect--possibly unbalanced (, {, or [.
Error in ==> demo at 57
[Ricp Ticp ER t] = icp(M, D, 15);
-------------------------------------
Hello ucd puri,
in your case, Matlab complaints about the following line (226 in icp.m):
[~, idx] = sort(mindist);
This is probably due to the fact that older versions of Matlab don't understand the tilde (~) as a way of discarding a certain output variable. You can either update to a newer version of Matlab or use a dummy output (you will have to do this at several places inside the code), e.g.:
[dummy, idx] = sort(mindist);
Regards,
Jakob
Comment only
18 Nov 2011
Iterative Closest Point
An implementation of various ICP (iterative closest point) features.
Hi Jakob
I am getting the following error when I run demo file. Any suggestions. many thanks.
------------------------------
??? Error: File: icp.m Line: 226 Column: 11
Expression or statement is incorrect--possibly unbalanced (, {, or [.
Error in ==> demo at 57
[Ricp Ticp ER t] = icp(M, D, 15);
-------------------------------------
Comment only
18 Nov 2011
Iterative Closest Point
An implementation of various ICP (iterative closest point) features.
Comment only