Error using | "Inputs must have the same size."
7 次查看(过去 30 天)
显示 更早的评论
Hello everybody,
I have made the attached kmeans clustering algorithm for un-predefined number of clusters. It is supposed to update each cluster center until either the cluster memberships are not changed, or the local distortion improvement corresponding to each cluster is less than a threshold. But I receive this error at line 113: Error using | "Inputs must have the same size."
and when I change it to , I get this error: Operands to the and && operators must be convertible to logical scalar values.
Could anyone suggest a solution?
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Cluster Analysis and Anomaly Detection 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!