error with pdist2 column mismatch
Mostrar comentarios más antiguos
particle(i).clustervaulues(k,j) = 1/(pdist2(particle(i).position(k),x(j)*pdist2(basestation,particle(i).position(k))));
particle.position is a 15x2 matrix, x is 100x2 and basestation is [50 50] but for the second pdist2 it tells me there is a column mismatch even though they all have to columns. the first pdist2 works fine,
any help would be appreciated
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Statistics and Machine Learning Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!