Filter löschen
Filter löschen

how would I input this equation into MATLAB

1 Ansicht (letzte 30 Tage)
Alex Skantz
Alex Skantz am 22 Okt. 2021
Beantwortet: Image Analyst am 22 Okt. 2021
how would I input this equation into matlab?
yi= each data point
sigma is uncertainty for each point
mi=corresponding model point
N=number of points
  1 Kommentar
Cris LaPierre
Cris LaPierre am 22 Okt. 2021
Have you gone through MATLAB Onramp yet? It will teach you how to create variables, assign values, index and modify arrays, perform calculations, and even cretae and use for loops.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Image Analyst
Image Analyst am 22 Okt. 2021
Like this
chiSquared = sum(((y - m) ./ sigma) .^ 2);

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by