how would I input this equation into MATLAB
Afficher commentaires plus anciens
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 commentaire
Cris LaPierre
le 22 Oct 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.
Réponses (1)
Image Analyst
le 22 Oct 2021
Like this
chiSquared = sum(((y - m) ./ sigma) .^ 2);
Catégories
En savoir plus sur Hypothesis Tests 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!