how do I trun my math equation into math lab code ?

回答 (1 件)

Star Strider
Star Strider 2021 年 2 月 14 日

0 投票

It would appear that you just did exactly that:
t= (x1-X2)/ sqrt[(s1)^2/N1 +(S2)^2/N2];
The only thing you need to do is to change the square brackets [] to parentheses ():
t= (x1-X2)/ sqrt((s1)^2/N1 +(S2)^2/N2);
If the arguments are vectors, it will also be necessary to use element-wise operations (with the ‘dot operator’) explained in Array vs. Matrix Operations.

2 件のコメント

chris patel
chris patel 2021 年 2 月 14 日
thank you the code was perfet.
Star Strider
Star Strider 2021 年 2 月 14 日
My pleasure!

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeMathematics についてさらに検索

製品

タグ

質問済み:

2021 年 2 月 14 日

コメント済み:

2021 年 2 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by