How to write matlab code for the following equation that is attached in pdf form.

3 vues (au cours des 30 derniers jours)
PLEASE GIVE MATLAB CODE FOR THE EQUATION THAT IS ATTACHED

Réponse acceptée

Walter Roberson
Walter Roberson le 21 Mar 2018
sum(sum(bsxfun(@minus, x, cen).^2))
  6 commentaires
suraj singh
suraj singh le 21 Mar 2018
Sir, x is (KxN) matrix and cen is (Kx1) vector.
suraj singh
suraj singh le 21 Mar 2018
Thanks, torsten and walter roberson. It works.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by