Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)
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 Commenti
Chandra Kurniawan
Chandra Kurniawan il 11 Gen 2012
What is X1 and X2?
a scalar or a matrix?
Ambika
Ambika il 11 Gen 2012
X1 and X2 are scalars

Accedi per commentare.

Risposta accettata

Andrew Newell
Andrew Newell il 11 Gen 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).

Più risposte (0)

Categorie

Scopri di più su Elementary Math in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by