what is the meaning of '.' in the below equation?

i saw an equation like tis ... but while running its showing error... pls tell what is the meaning of "." in below equation an how the answer to be come for this equation? F=(X1.-1)^2+(X2.-2.2)^2+1;

2 commentaires

What is X1 and X2?
a scalar or a matrix?
Ambika
Ambika le 11 Jan 2012
X1 and X2 are scalars

Connectez-vous pour commenter.

 Réponse acceptée

Andrew Newell
Andrew Newell le 11 Jan 2012
What is the "meaning" of an erroneous expression? Probably the intended expression was
F=(X1-1).^2+(X2-2.2).^2+1;
Here .^ is the element-by-element power (see Array arithmetic).

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics and Optimization dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by