how would I input this equation into MATLAB

2 visualizzazioni (ultimi 30 giorni)
Alex Skantz
Alex Skantz il 22 Ott 2021
Risposto: Image Analyst il 22 Ott 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 Commento
Cris LaPierre
Cris LaPierre il 22 Ott 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.

Accedi per commentare.

Risposte (1)

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

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Prodotti


Release

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by