Input Argument type double
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
I am running the "clusterDBSCAN" algorithm from the Phased Array Toolbox.
I try to get this example to run.
here the link to the help page: https://de.mathworks.com/help/phased/ref/clusterdbscan-system-object.html
My code is:
clusterer = clusterDBSCAN('EpsilonSource','Auto','MaxNumPoints',15, ...
'MinNumPoints', 5);
update= 1;
idx = clusterer(X,update);
X is a 100 x 2 matrix in type double.
But the output error is:
"Error using phased.internal.AbstractClusterDBSCAN/validateInputsImpl (line 274)
Expected input UPDATE data type to be double."
Thank you for your help.
댓글 수: 0
채택된 답변
Adam Danz
2020년 3월 31일
편집: Adam Danz
2020년 3월 31일
The update variable in your code is equal to 1 and is entered as the 2nd input to the clusterer but it doesn't fulfill the requirements for the 2nd input.
The 2nd input specifies ambiguity limits which should either be a real-valued 1-by-2 vector or real-valued 2-by-2 matrix. For more info, see the link.
The 2nd input specifies the automatic update of epsilon where update is a logical value (true|false). In your case, update is 1, not true. To enable this syntax, set the EpsilonSource property to 'Auto', optionally set the MaxNumPoints property, and also optionally set the EpsilonHistoryLength property.
댓글 수: 4
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!