Borrar filtros
Borrar filtros

how would I input this equation into MATLAB

1 visualización (últimos 30 días)
Alex Skantz
Alex Skantz el 22 de Oct. de 2021
Respondida: Image Analyst el 22 de Oct. de 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 comentario
Cris LaPierre
Cris LaPierre el 22 de Oct. de 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.

Iniciar sesión para comentar.

Respuestas (1)

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

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by