how would I input this equation into MATLAB

조회 수: 1 (최근 30일)
Alex Skantz
Alex Skantz 2021년 10월 22일
답변: Image Analyst 2021년 10월 22일
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
Cris LaPierre
Cris LaPierre 2021년 10월 22일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2021년 10월 22일
Like this
chiSquared = sum(((y - m) ./ sigma) .^ 2);

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by