how would I input this equation into MATLAB

2 ビュー (過去 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 Center および File ExchangeMATLAB についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by